|
@@ 123-131 (lines=9) @@
|
| 120 |
|
$container->setAlias('lug.manager.'.$resource->getName(), $this->createManagerAlias($resource)); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
if ($resource->getRepository() !== null) { |
| 124 |
|
$repository = 'lug.repository.'.$resource->getName(); |
| 125 |
|
|
| 126 |
|
if (class_exists($resource->getRepository())) { |
| 127 |
|
$container->setDefinition($repository, $this->createRepositoryDefinition($resource)); |
| 128 |
|
} elseif ($repository !== $resource->getRepository()) { |
| 129 |
|
$container->setAlias($repository, $resource->getRepository()); |
| 130 |
|
} |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
if ($resource->getFactory() !== null) { |
| 134 |
|
$factory = 'lug.factory.'.$resource->getName(); |
|
@@ 133-141 (lines=9) @@
|
| 130 |
|
} |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
if ($resource->getFactory() !== null) { |
| 134 |
|
$factory = 'lug.factory.'.$resource->getName(); |
| 135 |
|
|
| 136 |
|
if (class_exists($resource->getFactory())) { |
| 137 |
|
$container->setDefinition($factory, $this->createFactoryDefinition($resource)); |
| 138 |
|
} elseif ($factory !== $resource->getFactory()) { |
| 139 |
|
$container->setAlias($factory, $resource->getFactory()); |
| 140 |
|
} |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
if ($resource->getForm() !== null) { |
| 144 |
|
$form = 'lug.form.type.'.$resource->getName(); |
|
@@ 143-151 (lines=9) @@
|
| 140 |
|
} |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
if ($resource->getForm() !== null) { |
| 144 |
|
$form = 'lug.form.type.'.$resource->getName(); |
| 145 |
|
|
| 146 |
|
if (class_exists($resource->getForm())) { |
| 147 |
|
$container->setDefinition($form, $this->createFormDefinition($resource)); |
| 148 |
|
} elseif ($form !== $resource->getForm()) { |
| 149 |
|
$container->setAlias($form, $resource->getForm()); |
| 150 |
|
} |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
if ($resource->getChoiceForm() !== null) { |
| 154 |
|
$choiceForm = 'lug.form.type.'.$resource->getName().'.choice'; |
|
@@ 153-161 (lines=9) @@
|
| 150 |
|
} |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
if ($resource->getChoiceForm() !== null) { |
| 154 |
|
$choiceForm = 'lug.form.type.'.$resource->getName().'.choice'; |
| 155 |
|
|
| 156 |
|
if (class_exists($resource->getChoiceForm())) { |
| 157 |
|
$container->setDefinition($choiceForm, $this->createChoiceFormDefinition($resource)); |
| 158 |
|
} elseif ($choiceForm !== $resource->getChoiceForm()) { |
| 159 |
|
$container->setAlias($choiceForm, $resource->getChoiceForm()); |
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
if ($resource->getDomainManager() !== null) { |
| 164 |
|
$domainManager = 'lug.domain_manager.'.$resource->getName(); |
|
@@ 163-171 (lines=9) @@
|
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
if ($resource->getDomainManager() !== null) { |
| 164 |
|
$domainManager = 'lug.domain_manager.'.$resource->getName(); |
| 165 |
|
|
| 166 |
|
if (class_exists($resource->getDomainManager())) { |
| 167 |
|
$container->setDefinition($domainManager, $this->createDomainManagerDefinition($resource)); |
| 168 |
|
} elseif ($domainManager !== $resource->getDomainManager()) { |
| 169 |
|
$container->setAlias($domainManager, $resource->getDomainManager()); |
| 170 |
|
} |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
if ($resource->getController() !== null) { |
| 174 |
|
$controller = 'lug.controller.'.$resource->getName(); |
|
@@ 173-181 (lines=9) @@
|
| 170 |
|
} |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
if ($resource->getController() !== null) { |
| 174 |
|
$controller = 'lug.controller.'.$resource->getName(); |
| 175 |
|
|
| 176 |
|
if (class_exists($resource->getController())) { |
| 177 |
|
$container->setDefinition($controller, $this->createControllerDefinition($resource)); |
| 178 |
|
} elseif ($controller !== $resource->getController()) { |
| 179 |
|
$container->setAlias($container, $resource->getController()); |
| 180 |
|
} |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
$container->addObjectResource($resource); |
| 184 |
|
} |