Add feed repository as a service

This commit is contained in:
Romain Neutron
2014-02-27 17:10:34 +01:00
parent 20aea6de2a
commit 6aaa9ab38e
7 changed files with 20 additions and 17 deletions

View File

@@ -34,7 +34,7 @@ class Publications implements ControllerProviderInterface
});
$controllers->get('/list/', function (PhraseaApplication $app) {
$feeds = $app['EM']->getRepository('Phraseanet:Feed')->getAllForUser(
$feeds = $app['repo.feeds']->getAllForUser(
$app['acl']->get($app['authentication']->getUser())
);