// Try to locate the class
if ($class = self::
locateClass($options,
$alias)) { return new $class(...
$arguments);
} return null;
} // Check for an existing definition
$instance = self::
getDefinedInstance($options,
$alias,
$arguments);
if ($instance !== null
) { return $instance;
} // Try to locate the class
if (!
$class = self::
locateClass($options,
$alias)) { return null;
} self::
createInstance($options['component'
],
$class,
$arguments);
self::
setAlias($options['component'
],
$alias,
$class);