Use SubDefinitionSubstituerAware in some Controllers

This commit is contained in:
Benoît Burnichon
2015-06-02 13:59:33 +02:00
parent 4eea27d9be
commit 6df9626fce
6 changed files with 19 additions and 26 deletions

View File

@@ -11,6 +11,7 @@ namespace Alchemy\Phrasea\Controller\Prod;
use Alchemy\Phrasea\Application\Helper\DataboxLoggerAware;
use Alchemy\Phrasea\Application\Helper\DispatcherAware;
use Alchemy\Phrasea\Application\Helper\SubDefinitionSubstituerAware;
use Alchemy\Phrasea\Controller\Controller;
use Alchemy\Phrasea\Controller\RecordsRequest;
use Alchemy\Phrasea\Core\Event\RecordEdit;
@@ -23,6 +24,7 @@ class EditController extends Controller
{
use DataboxLoggerAware;
use DispatcherAware;
use SubDefinitionSubstituerAware;
public function submitAction(Request $request)
{
@@ -373,12 +375,4 @@ class EditController extends Controller
return $this->app->json(['success' => true]);
}
/**
* @return SubdefSubstituer
*/
private function getSubDefinitionSubstituer()
{
return $this->app['subdef.substituer'];
}
}