11
11
12
12
namespace Sylius \Bundle \SettingsBundle \Manager ;
13
13
14
- use Doctrine \Persistence \ObjectRepository ;
14
+ use Doctrine \Persistence \ObjectManager ;
15
15
use Sylius \Bundle \SettingsBundle \Event \SettingsEvent ;
16
16
use Sylius \Bundle \SettingsBundle \Model \SettingsInterface ;
17
17
use Sylius \Bundle \SettingsBundle \Registry \ServiceRegistryInterface ;
@@ -38,7 +38,7 @@ final class SettingsManager implements SettingsManagerInterface
38
38
private $ resolverRegistry ;
39
39
40
40
/**
41
- * @var ObjectRepository
41
+ * @var ObjectManager
42
42
*/
43
43
private $ manager ;
44
44
@@ -55,7 +55,7 @@ final class SettingsManager implements SettingsManagerInterface
55
55
public function __construct (
56
56
ServiceRegistryInterface $ schemaRegistry ,
57
57
ServiceRegistryInterface $ resolverRegistry ,
58
- ObjectRepository $ manager ,
58
+ ObjectManager $ manager ,
59
59
FactoryInterface $ settingsFactory ,
60
60
EventDispatcherInterface $ eventDispatcher
61
61
) {
@@ -69,7 +69,7 @@ public function __construct(
69
69
/**
70
70
* {@inheritdoc}
71
71
*/
72
- public function load (string $ schemaAlias , string $ namespace = null , bool $ ignoreUnknown = true )
72
+ public function load (string $ schemaAlias , string $ namespace = null , bool $ ignoreUnknown = true ): SettingsInterface
73
73
{
74
74
/** @var SchemaInterface $schema */
75
75
$ schema = $ this ->schemaRegistry ->get ($ schemaAlias );
0 commit comments