@@ -57,13 +57,13 @@ discard block |
||
57 | 57 | public function fetch($alias, $fallback = '_michaels_no_fallback') |
58 | 58 | { |
59 | 59 | // If this is a link, just go back to the master |
60 | - $link = $this->getIfExists($this->nameOfIocManifest . ".$alias"); |
|
60 | + $link = $this->getIfExists($this->nameOfIocManifest.".$alias"); |
|
61 | 61 | if (is_string($link) && strpos($link, '_michaels_link_') !== false) { |
62 | 62 | return $this->fetch(str_replace('_michaels_link_', '', $link)); |
63 | 63 | } |
64 | 64 | |
65 | 65 | // Otherwise, continue |
66 | - $shared = $this->getIfExists($this->nameOfIocManifest . "._singletons.$alias"); |
|
66 | + $shared = $this->getIfExists($this->nameOfIocManifest."._singletons.$alias"); |
|
67 | 67 | |
68 | 68 | if ($shared instanceof NoItemFoundMessage) { |
69 | 69 | // This is not a shared item. We want a new one each time |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | // This is shared, but we must produce and cache it |
77 | 77 | } else { |
78 | 78 | $object = $this->produceDependency($alias, $fallback); |
79 | - $this->set($this->nameOfIocManifest . "._singletons.$alias", $object); |
|
79 | + $this->set($this->nameOfIocManifest."._singletons.$alias", $object); |
|
80 | 80 | return $object; |
81 | 81 | } |
82 | 82 | } |
@@ -104,17 +104,17 @@ discard block |
||
104 | 104 | unset($links[0]); |
105 | 105 | } |
106 | 106 | |
107 | - $this->set($this->nameOfIocManifest . ".$alias", $factory); |
|
107 | + $this->set($this->nameOfIocManifest.".$alias", $factory); |
|
108 | 108 | |
109 | 109 | // Setup any declared dependencies |
110 | 110 | if ($declared) { |
111 | - $this->set($this->nameOfIocManifest . "._declarations.$alias", $declared); |
|
111 | + $this->set($this->nameOfIocManifest."._declarations.$alias", $declared); |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | // Add Links |
115 | 115 | if (!empty($links)) { |
116 | 116 | foreach ($links as $link) { |
117 | - $this->set($this->nameOfIocManifest . ".$link", "_michaels_link_$alias"); |
|
117 | + $this->set($this->nameOfIocManifest.".$link", "_michaels_link_$alias"); |
|
118 | 118 | } |
119 | 119 | } |
120 | 120 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | */ |
129 | 129 | public function share($alias) |
130 | 130 | { |
131 | - $this->add($this->nameOfIocManifest . "._singletons.$alias", true); |
|
131 | + $this->add($this->nameOfIocManifest."._singletons.$alias", true); |
|
132 | 132 | return $this; |
133 | 133 | } |
134 | 134 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function setup($alias, $pipeline) |
142 | 142 | { |
143 | - $this->add($this->nameOfIocManifest . "._pipelines.$alias", $pipeline); |
|
143 | + $this->add($this->nameOfIocManifest."._pipelines.$alias", $pipeline); |
|
144 | 144 | return $this; |
145 | 145 | } |
146 | 146 | |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | protected function produceDependency($alias, $fallback = '_michaels_no_fallback') |
176 | 176 | { |
177 | 177 | /* Get the registered factory (string, closure, object, container, NoItemFoundMessage) */ |
178 | - $factory = $this->getIfExists($this->nameOfIocManifest . ".$alias"); |
|
178 | + $factory = $this->getIfExists($this->nameOfIocManifest.".$alias"); |
|
179 | 179 | |
180 | 180 | /* Manage not founds and fallback */ |
181 | 181 | if ($factory instanceof NoItemFoundMessage) { |
@@ -189,13 +189,13 @@ discard block |
||
189 | 189 | } |
190 | 190 | |
191 | 191 | /* Get any declared dependencies */ |
192 | - $declared = $this->getIfExists($this->nameOfIocManifest . "._declarations.$alias"); |
|
192 | + $declared = $this->getIfExists($this->nameOfIocManifest."._declarations.$alias"); |
|
193 | 193 | $dependencies = []; |
194 | 194 | |
195 | 195 | // Now setup those dependencies into an array |
196 | 196 | if (!$declared instanceof NoItemFoundMessage) { |
197 | 197 | $dependencies = array_map(function(&$value) use ($alias) { |
198 | - if (is_string($value) && $this->exists($this->nameOfIocManifest . ".$alias")) { |
|
198 | + if (is_string($value) && $this->exists($this->nameOfIocManifest.".$alias")) { |
|
199 | 199 | return $this->fetch($value); |
200 | 200 | } |
201 | 201 | return $value; |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | } |
227 | 227 | |
228 | 228 | /* Run the object through the pipeline, if desired */ |
229 | - $pipeline = $this->getIfExists($this->nameOfIocManifest . "._pipelines.$alias"); |
|
229 | + $pipeline = $this->getIfExists($this->nameOfIocManifest."._pipelines.$alias"); |
|
230 | 230 | |
231 | 231 | if (!$pipeline instanceof NoItemFoundMessage) { |
232 | 232 | /** @var \Closure $pipeline */ |