Change DispatcherAware to accept concrete instances

Dispatcher is already instanciated when invoking controller. So useless to lazy load it.
This commit is contained in:
Benoît Burnichon
2015-05-14 19:27:58 +02:00
parent 55190dffd0
commit e25cd4097c
11 changed files with 15 additions and 44 deletions

View File

@@ -10,6 +10,7 @@
namespace Alchemy\Phrasea\Controller\Prod;
use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Application\Helper\DispatcherAware;
use Alchemy\Phrasea\Application\Helper\FirewallAware;
use Alchemy\Phrasea\Controller\Controller;
use Alchemy\Phrasea\Controller\RecordsRequest;
@@ -26,6 +27,7 @@ use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
class FeedController extends Controller
{
use DispatcherAware;
use FirewallAware;
public function publishRecordsAction(Application $app, Request $request)