@@ 152-156 (lines=5) @@ | ||
149 | return; |
|
150 | } |
|
151 | ||
152 | if (isset($service['parent'])) { |
|
153 | $definition = new DefinitionDecorator($service['parent']); |
|
154 | } else { |
|
155 | $definition = new Definition(); |
|
156 | } |
|
157 | ||
158 | if (isset($service['class'])) { |
|
159 | $definition->setClass($service['class']); |
@@ 145-149 (lines=5) @@ | ||
142 | return; |
|
143 | } |
|
144 | ||
145 | if ($parent = $service->getAttribute('parent')) { |
|
146 | $definition = new DefinitionDecorator($parent); |
|
147 | } else { |
|
148 | $definition = new Definition(); |
|
149 | } |
|
150 | ||
151 | foreach (array('class', 'scope', 'public', 'factory-class', 'factory-method', 'factory-service', 'synthetic', 'lazy', 'abstract') as $key) { |
|
152 | if ($value = $service->getAttribute($key)) { |
@@ 156-160 (lines=5) @@ | ||
153 | return; |
|
154 | } |
|
155 | ||
156 | if (isset($service['parent'])) { |
|
157 | $definition = new DefinitionDecorator($service['parent']); |
|
158 | } else { |
|
159 | $definition = new Definition(); |
|
160 | } |
|
161 | ||
162 | if (isset($service['class'])) { |
|
163 | $definition->setClass($service['class']); |