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\FilesystemAware;
use Alchemy\Phrasea\Application\Helper\SubDefinitionSubstituerAware;
use Alchemy\Phrasea\Controller\Controller;
use Alchemy\Phrasea\Controller\RecordsRequest;
use Alchemy\Phrasea\Exception\RuntimeException;
@@ -28,6 +29,7 @@ class ToolsController extends Controller
{
use DataboxLoggerAware;
use FilesystemAware;
use SubDefinitionSubstituerAware;
public function indexAction(Request $request)
{
@@ -297,14 +299,6 @@ class ToolsController extends Controller
return $this->app['mediavorus'];
}
/**
* @return SubdefSubstituer
*/
private function getSubDefinitionSubstituer()
{
return $this->app['subdef.substituer'];
}
/**
* @return PhraseanetMetadataSetter
*/