1 | <?php |
||
28 | class FactoryAdapter implements ContainerAwareInterface |
||
29 | { |
||
30 | |||
31 | use ContainerAwareTrait; |
||
32 | |||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $instances = array(); |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $defaultClass; |
||
42 | |||
43 | /** |
||
44 | * @var array |
||
45 | */ |
||
46 | protected $settings; |
||
47 | |||
48 | /** |
||
49 | * @var \Symfony\Component\EventDispatcher\EventDispatcherInterface |
||
50 | */ |
||
51 | protected $dispatcher; |
||
52 | |||
53 | /** |
||
54 | * @var \Smalot\MagentoBundle\Logger\LoggerInterface |
||
55 | */ |
||
56 | protected $logger; |
||
57 | |||
58 | /** |
||
59 | * @param string $defaultClass |
||
60 | * @param EventDispatcherInterface $dispatcher |
||
61 | * @param LoggerInterface $logger |
||
62 | */ |
||
63 | public function __construct( |
||
73 | |||
74 | /** |
||
75 | * @param string $name |
||
76 | * @param array $options |
||
77 | * @param bool $autoLogin |
||
78 | * |
||
79 | * @return RemoteAdapterInterface |
||
80 | * @throws MagentoException |
||
81 | */ |
||
82 | public function getManager($name = null, $options = array(), $autoLogin = true) |
||
116 | |||
117 | /** |
||
118 | * @param string $name |
||
119 | * |
||
120 | * @return string |
||
121 | */ |
||
122 | protected function getConnectionName($name) |
||
139 | |||
140 | /** |
||
141 | * @param string $name |
||
142 | * @param string $class |
||
143 | * @param array $settings |
||
144 | * @param array $options |
||
145 | * @param bool $autoLogin |
||
146 | * |
||
147 | * @return RemoteAdapter |
||
148 | */ |
||
149 | protected function createInstance($name, $class, $settings, $options = array(), $autoLogin = true) |
||
162 | } |
||
163 |