|
@@ 295-301 (lines=7) @@
|
| 292 |
|
* @param string $dependency |
| 293 |
|
* @return bool |
| 294 |
|
*/ |
| 295 |
|
public function has_dependency_for_class($class_name = '', $dependency = '') |
| 296 |
|
{ |
| 297 |
|
$dependency = $this->get_alias($dependency); |
| 298 |
|
return isset($this->_dependency_map[$class_name], $this->_dependency_map[$class_name][$dependency]) |
| 299 |
|
? true |
| 300 |
|
: false; |
| 301 |
|
} |
| 302 |
|
|
| 303 |
|
|
| 304 |
|
|
|
@@ 326-334 (lines=9) @@
|
| 323 |
|
* @param string $class_name |
| 324 |
|
* @return string | Closure |
| 325 |
|
*/ |
| 326 |
|
public function class_loader($class_name) |
| 327 |
|
{ |
| 328 |
|
// don't use loaders for FQCNs |
| 329 |
|
if(strpos($class_name, '\\') !== false){ |
| 330 |
|
return ''; |
| 331 |
|
} |
| 332 |
|
$class_name = $this->get_alias($class_name); |
| 333 |
|
return isset($this->_class_loaders[$class_name]) ? $this->_class_loaders[$class_name] : ''; |
| 334 |
|
} |
| 335 |
|
|
| 336 |
|
|
| 337 |
|
|