share(function (PhraseaApplication $app) { return new PSAdminController($app); }); } /** * Returns routes to connect to the given application. * * @param Application $app An Application instance * * @return ControllerCollection A ControllerCollection instance */ public function connect(Application $app) { $controllers = $this->createAuthenticatedCollection($app); $controllers->match('/', 'controller.ps.admin:indexAction') ->method('GET') ->bind('ps_admin'); return $controllers; } /** * Bootstraps the application. * * This method is called after all services are registered * and should be used for "dynamic" configuration (whenever * a service must be requested). */ public function boot(Application $app) { } }