share(function (PhraseaApplication $app) { return (new PropertyController($app)) ->setDataboxLoggerLocator($app['phraseanet.logger']) ; }); } public function boot(Application $app) { // no-op } /** * {@inheritDoc} */ public function connect(Application $app) { $controllers = $this->createAuthenticatedCollection($app); $firewall = $this->getFirewall($app); $controllers->before(function () use ($firewall) { $firewall->requireNotGuest(); }); $controllers->get('/', 'controller.prod.property:displayStatusProperty') ->bind('display_status_property'); $controllers->get('/type/', 'controller.prod.property:displayTypeProperty') ->bind('display_type_property'); $controllers->post('/status/', 'controller.prod.property:changeStatus') ->bind('change_status'); $controllers->post('/type/', 'controller.prod.property:changeType') ->bind('change_type'); return $controllers; } }