1 | <?php |
||
28 | class FactoryAdapter implements ContainerAwareInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $instances = array(); |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $defaultClass; |
||
39 | |||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $settings; |
||
44 | |||
45 | /** |
||
46 | * @var EventDispatcherInterface |
||
47 | */ |
||
48 | protected $dispatcher; |
||
49 | |||
50 | /** |
||
51 | * @var LoggerInterface |
||
52 | */ |
||
53 | protected $logger; |
||
54 | |||
55 | /** |
||
56 | * @var ContainerInterface |
||
57 | */ |
||
58 | protected $container; |
||
59 | |||
60 | /** |
||
61 | * @param string $defaultClass |
||
62 | * @param EventDispatcherInterface $dispatcher |
||
63 | * @param LoggerInterface $logger |
||
64 | */ |
||
65 | public function __construct( |
||
74 | |||
75 | /** |
||
76 | * Sets the Container associated with this Controller. |
||
77 | * |
||
78 | * @param ContainerInterface $container A ContainerInterface instance |
||
79 | * |
||
80 | * @api |
||
81 | */ |
||
82 | public function setContainer(ContainerInterface $container = null) |
||
89 | |||
90 | /** |
||
91 | * @param string $name |
||
92 | * @param array $options |
||
93 | * @param bool $autoLogin |
||
94 | * |
||
95 | * @return RemoteAdapterInterface |
||
96 | * @throws MagentoException |
||
97 | */ |
||
98 | public function getManager($name = null, $options = array(), $autoLogin = true) |
||
129 | |||
130 | /** |
||
131 | * @param string $name |
||
132 | * |
||
133 | * @return string |
||
134 | */ |
||
135 | protected function getConnectionName($name) |
||
152 | |||
153 | /** |
||
154 | * @param string $name |
||
155 | * @param string $class |
||
156 | * @param array $settings |
||
157 | * @param array $options |
||
158 | * @param bool $autoLogin |
||
159 | * |
||
160 | * @return RemoteAdapter |
||
161 | */ |
||
162 | protected function createInstance($name, $class, $settings, $options = array(), $autoLogin = true) |
||
175 | } |
||
176 |