mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-15 17:40:58 +00:00
Merge pull request #2804 from rvanlaak/patch-3
2.7 Defintion deprecation fix
This commit is contained in:
commit
4b022f7672
2 changed files with 3 additions and 6 deletions
|
|
@ -126,8 +126,7 @@ abstract class AbstractDatabaseDriver implements DatabaseDriverInterface
|
|||
{
|
||||
$definition = new Definition(new Parameter('sylius.controller.configuration.class'));
|
||||
$definition
|
||||
->setFactoryService('sylius.controller.configuration_factory')
|
||||
->setFactoryMethod('createConfiguration')
|
||||
->setFactory(array(new Reference('sylius.controller.configuration_factory'), 'createConfiguration'))
|
||||
->setArguments(array($this->prefix, $this->resourceName, $this->templates))
|
||||
->setPublic(false)
|
||||
;
|
||||
|
|
@ -188,8 +187,7 @@ abstract class AbstractDatabaseDriver implements DatabaseDriverInterface
|
|||
{
|
||||
$definition = new Definition($this->getClassMetadataClassname());
|
||||
$definition
|
||||
->setFactoryService($this->getManagerServiceKey())
|
||||
->setFactoryMethod('getClassMetadata')
|
||||
->setFactory(array(new Reference($this->getManagerServiceKey()), 'getClassMetadata'))
|
||||
->setArguments(array($models))
|
||||
->setPublic(false)
|
||||
;
|
||||
|
|
|
|||
|
|
@ -49,8 +49,7 @@ class DoctrineODMDriver extends AbstractDatabaseDriver
|
|||
|
||||
$unitOfWorkDefinition = new Definition('Doctrine\\ODM\\MongoDB\\UnitOfWork');
|
||||
$unitOfWorkDefinition
|
||||
->setFactoryService($this->getManagerServiceKey())
|
||||
->setFactoryMethod('getUnitOfWork')
|
||||
->setFactory(array(new Reference($this->getManagerServiceKey()), 'getUnitOfWork'))
|
||||
->setPublic(false);
|
||||
|
||||
$definition = new Definition($repositoryClass);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue