File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55use Doctrine \ODM \MongoDB \DocumentManager ;
66use Payum \Core \Bridge \Doctrine \Storage \DoctrineStorage ;
77use Symfony \Component \DependencyInjection \Loader \Configurator \ContainerConfigurator ;
8- use function Symfony \Component \DependencyInjection \Loader \ Configurator \ ref ;
8+ use Symfony \Component \DependencyInjection \Reference ;
99
1010return static function (ContainerConfigurator $ container ): void {
1111 $ container ->parameters ()
1818 ->public (false )
1919 ->abstract ()
2020 ->args ([
21- ref ('payum.document_manager ' ),
21+ new Reference ('payum.document_manager ' ),
2222 null , // should be set in DoctrineStorageFactory
2323 ])
2424 ;
2525
2626 $ services ->set ('payum.document_manager ' , DocumentManager::class)
2727 ->public (false )
28- ->factory ([ref ('doctrine_mongodb ' ), 'getManager ' ])
28+ ->factory ([new Reference ('doctrine_mongodb ' ), 'getManager ' ])
2929 ;
3030};
You can’t perform that action at this time.
0 commit comments