mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
get services from new service builder
This commit is contained in:
@@ -324,12 +324,12 @@ class module_console_fileConfigCheck extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$service = Core\ServiceBuilder::build(
|
$serviceBuilder = new Core\ServiceBuilder\TemplateEngine(
|
||||||
$templateEngineName
|
$templateEngineName
|
||||||
, Core\ServiceBuilder::TEMPLATE_ENGINE
|
|
||||||
, $configuration
|
, $configuration
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$service = $serviceBuilder->buildService();
|
||||||
|
|
||||||
if ($service->getType() === 'twig')
|
if ($service->getType() === 'twig')
|
||||||
{
|
{
|
||||||
@@ -415,12 +415,16 @@ class module_console_fileConfigCheck extends Command
|
|||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
$service = Core\ServiceBuilder::build(
|
$registry = \registry::get_instance();
|
||||||
|
|
||||||
|
$serviceBuilder = new Core\ServiceBuilder\Orm(
|
||||||
$ormName
|
$ormName
|
||||||
, Core\ServiceBuilder::ORM
|
|
||||||
, $configuration
|
, $configuration
|
||||||
|
, array('registry'=> $registry)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$service = $serviceBuilder->buildService();
|
||||||
|
|
||||||
if ($service->getType() === 'doctrine')
|
if ($service->getType() === 'doctrine')
|
||||||
{
|
{
|
||||||
$caches = $service->getCacheServices();
|
$caches = $service->getCacheServices();
|
||||||
|
Reference in New Issue
Block a user