src/Markei/SilexWebsiteFramework/Application.php
protected function registerRoutes()
    {
        $this->get($this['imagine.thumbnail_url'] . '{size}/{checksum}/{path}', function (Application $app, Request $request, $path, $size, $checksum) { return $app['controllers.imagine']->resizeImageAction($request, $path, $size, $checksum); })->assert('path', '.+');
        $this->get('', function (Application $app, Request $request) { return $app['controllers.page']->showHomePageAction($request); });
        $this->error(function (NotFoundHttpException $e, $code) { return $this['controllers.error']->notFoundAction($e); });
        $this->error(function (\Exception $e, $code) { return $this['controllers.error']->internalServerErrorAction($e); });
    }
protected function registerRoutes()
    {
        $this->get($this['imagine.thumbnail_url'] . '{size}/{checksum}/{path}', function (Application $app, Request $request, $path, $size, $checksum) { return $app['controllers.imagine']->resizeImageAction($request, $path, $size, $checksum); })->assert('path', '.+');
        $this->get('', function (Application $app, Request $request) { return $app['controllers.page']->showHomePageAction($request); });
        $this->error(function (NotFoundHttpException $e, $code) { return $this['controllers.error']->notFoundAction($e); });
        $this->error(function (\Exception $e, $code) { return $this['controllers.error']->internalServerErrorAction($e); });
    }
protected function registerRoutes ( ) { $ this -> get ( $ this [ 'imagine.thumbnail_url' ] . '{size}/{checksum}/{path}' , function ( Application $ app , Request $ request , $ path , $ size , $ checksum ) { return $ app [ 'controllers.imagine' ] -> resizeImageAction ( $ request , $ path , $ size , $ checksum ) ; } ) -> assert ( 'path' , '.+' ) ; $ this -> get ( '' , function ( Application $ app , Request $ request ) { return $ app [ 'controllers.page' ] -> showHomePageAction ( $ request ) ; } ) ; $ this -> error ( function ( NotFoundHttpException $ e , $ code ) { return $ this [ 'controllers.error' ] -> notFoundAction ( $ e ) ; } ) ; $ this -> error ( function ( \ Exception $ e , $ code ) { return $ this [ 'controllers.error' ] -> internalServerErrorAction ( $ e ) ; } ) ; }
Register the routes and link them to the controller actions
Register the routes and link them to the controller actions