1 | <?php |
||
28 | class Commander |
||
29 | { |
||
30 | /** |
||
31 | * The entity namespace. |
||
32 | */ |
||
33 | const ENTITY_NAMESPACE = 'GravityMedia\Commander\ORM'; |
||
34 | |||
35 | /** |
||
36 | * The logger name. |
||
37 | */ |
||
38 | const LOGGER_NAME = 'COMMANDER'; |
||
39 | |||
40 | /** |
||
41 | * @var Config |
||
42 | */ |
||
43 | protected $config; |
||
44 | |||
45 | /** |
||
46 | * The cache. |
||
47 | * |
||
48 | * @var Cache |
||
49 | */ |
||
50 | protected $cache; |
||
51 | |||
52 | /** |
||
53 | * The mapping driver. |
||
54 | * |
||
55 | * @var MappingDriver |
||
56 | */ |
||
57 | protected $mappingDriver; |
||
58 | |||
59 | /** |
||
60 | * The entity manager. |
||
61 | * |
||
62 | * @var EntityManagerInterface |
||
63 | */ |
||
64 | protected $entityManager; |
||
65 | |||
66 | /** |
||
67 | * The schema tool. |
||
68 | * |
||
69 | * @var SchemaTool |
||
70 | */ |
||
71 | protected $schemaTool; |
||
72 | |||
73 | /** |
||
74 | * The schema validator. |
||
75 | * |
||
76 | * @var SchemaValidator |
||
77 | */ |
||
78 | protected $schemaValidator; |
||
79 | |||
80 | /** |
||
81 | * The logger. |
||
82 | * |
||
83 | * @var LoggerInterface |
||
84 | */ |
||
85 | protected $logger; |
||
86 | |||
87 | /** |
||
88 | * The task manager. |
||
89 | * |
||
90 | * @var TaskManager |
||
91 | */ |
||
92 | protected $taskManager; |
||
93 | |||
94 | /** |
||
95 | * Create commander object. |
||
96 | * |
||
97 | * @param Config $config |
||
98 | */ |
||
99 | public function __construct(Config $config) |
||
103 | |||
104 | /** |
||
105 | * Get cache. |
||
106 | * |
||
107 | * @return Cache |
||
108 | */ |
||
109 | public function getCache() |
||
119 | |||
120 | /** |
||
121 | * Get mapping driver. |
||
122 | * |
||
123 | * @return MappingDriver |
||
124 | */ |
||
125 | public function getMappingDriver() |
||
135 | |||
136 | /** |
||
137 | * Get entity manager. |
||
138 | * |
||
139 | * @return EntityManagerInterface |
||
140 | */ |
||
141 | public function getEntityManager() |
||
151 | |||
152 | /** |
||
153 | * Get schema tool. |
||
154 | * |
||
155 | * @return SchemaTool |
||
156 | */ |
||
157 | public function getSchemaTool() |
||
167 | |||
168 | /** |
||
169 | * Get schema validator. |
||
170 | * |
||
171 | * @return SchemaValidator |
||
172 | */ |
||
173 | public function getSchemaValidator() |
||
183 | |||
184 | /** |
||
185 | * Get logger. |
||
186 | * |
||
187 | * @return LoggerInterface |
||
188 | */ |
||
189 | public function getLogger() |
||
199 | |||
200 | /** |
||
201 | * Get task manager. |
||
202 | * |
||
203 | * @return TaskManager |
||
204 | */ |
||
205 | public function getTaskManager() |
||
215 | } |
||
216 |