◆ appendStrategy()
static Http\Discovery\ClassDiscovery::appendStrategy |
( |
|
$strategy | ) |
|
|
static |
◆ clearCache()
static Http\Discovery\ClassDiscovery::clearCache |
( |
| ) |
|
|
static |
◆ evaluateCondition()
static Http\Discovery\ClassDiscovery::evaluateCondition |
( |
|
$condition | ) |
|
|
staticprotected |
◆ findOneByType()
static Http\Discovery\ClassDiscovery::findOneByType |
( |
|
$type | ) |
|
|
staticprotected |
◆ instantiateClass()
static Http\Discovery\ClassDiscovery::instantiateClass |
( |
|
$class | ) |
|
|
staticprotected |
Get an instance of the $class.
- Parameters
-
string | \Closure | $class | A FQCN of a class or a closure that instantiate the class. |
- Returns
- object
- Exceptions
-
ClassInstantiationFailedException | |
Definition at line 199 of file ClassDiscovery.php.
◆ prependStrategy()
static Http\Discovery\ClassDiscovery::prependStrategy |
( |
|
$strategy | ) |
|
|
static |
◆ safeClassExists()
static Http\Discovery\ClassDiscovery::safeClassExists |
( |
|
$class | ) |
|
|
static |
We want to do a "safe" version of PHP's "class_exists" because Magento has a bug (or they call it a "feature"). Magento is throwing an exception if you do class_exists() on a class that ends with "Factory" and if that file does not exits.
This function will catch all potential exceptions and make sure it returns a boolean.
- Parameters
-
string | $class | |
bool | $autoload | |
- Returns
- bool
Definition at line 228 of file ClassDiscovery.php.
Referenced by Http\Discovery\ClassDiscovery\evaluateCondition().
◆ setStrategies()
static Http\Discovery\ClassDiscovery::setStrategies |
( |
array |
$strategies | ) |
|
|
static |
The documentation for this class was generated from the following file: