mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
indent
This commit is contained in:
parent
843cf43b54
commit
44d90ab942
@ -5,4 +5,3 @@ use Gist\Application;
|
|||||||
$app = Application::getInstance();
|
$app = Application::getInstance();
|
||||||
|
|
||||||
$app['root_path'] = __DIR__ . '/../..';
|
$app['root_path'] = __DIR__ . '/../..';
|
||||||
|
|
||||||
|
@ -10,4 +10,3 @@ $app->error(function (Exception $e, $code) use ($app) {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -10,6 +10,6 @@ $app['routing.loader'] = function ($app) {
|
|||||||
|
|
||||||
$app['routes'] = $app->extend('routes', function ($routes, $app) {
|
$app['routes'] = $app->extend('routes', function ($routes, $app) {
|
||||||
$routes->addCollection($app['routing.loader']->load($app['routing.file']));
|
$routes->addCollection($app['routing.loader']->load($app['routing.file']));
|
||||||
|
|
||||||
return $routes;
|
return $routes;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -11,4 +11,3 @@ $app->extend('twig', function ($twig, $app) {
|
|||||||
|
|
||||||
return $twig;
|
return $twig;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
use GitWrapper\GitWrapper;
|
use GitWrapper\GitWrapper;
|
||||||
|
|
||||||
$app['git'] = function ($app) {
|
$app['git'] = function ($app) {
|
||||||
echo "ok";
|
echo "ok";
|
||||||
|
|
||||||
return new GitWrapper();
|
return new GitWrapper();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ class HomeController
|
|||||||
public function indexAction(Request $request, Application $app)
|
public function indexAction(Request $request, Application $app)
|
||||||
{
|
{
|
||||||
$form = new CreateGistForm($app['form.factory'], $app['translator']);
|
$form = new CreateGistForm($app['form.factory'], $app['translator']);
|
||||||
$form = $form->build();
|
$form = $form->build();
|
||||||
|
|
||||||
return $app['twig']->render(
|
return $app['twig']->render(
|
||||||
'Home/index.html.twig',
|
'Home/index.html.twig',
|
||||||
|
Loading…
Reference in New Issue
Block a user