|
@@ -51,6 +51,8 @@ namespace Symfony\Component\ClassLoader;
|
|
|
* found before giving up.
|
|
|
*
|
|
|
* @author Fabien Potencier <fabien@symfony.com>
|
|
|
+ *
|
|
|
+ * @api
|
|
|
*/
|
|
|
class UniversalClassLoader
|
|
|
{
|
|
@@ -103,6 +105,8 @@ class UniversalClassLoader
|
|
|
* Registers the directory to use as a fallback for namespaces.
|
|
|
*
|
|
|
* @param string|array $dirs A directory path or an array of directories
|
|
|
+ *
|
|
|
+ * @api
|
|
|
*/
|
|
|
public function registerNamespaceFallback($dirs)
|
|
|
{
|
|
@@ -113,6 +117,8 @@ class UniversalClassLoader
|
|
|
* Registers the directory to use as a fallback for class prefixes.
|
|
|
*
|
|
|
* @param string|array $dirs A directory path or an array of directories
|
|
|
+ *
|
|
|
+ * @api
|
|
|
*/
|
|
|
public function registerPrefixFallback($dirs)
|
|
|
{
|
|
@@ -123,6 +129,8 @@ class UniversalClassLoader
|
|
|
* Registers an array of namespaces
|
|
|
*
|
|
|
* @param array $namespaces An array of namespaces (namespaces as keys and locations as values)
|
|
|
+ *
|
|
|
+ * @api
|
|
|
*/
|
|
|
public function registerNamespaces(array $namespaces)
|
|
|
{
|
|
@@ -136,6 +144,8 @@ class UniversalClassLoader
|
|
|
*
|
|
|
* @param string $namespace The namespace
|
|
|
* @param array|string $paths The location(s) of the namespace
|
|
|
+ *
|
|
|
+ * @api
|
|
|
*/
|
|
|
public function registerNamespace($namespace, $paths)
|
|
|
{
|
|
@@ -146,6 +156,8 @@ class UniversalClassLoader
|
|
|
* Registers an array of classes using the PEAR naming convention.
|
|
|
*
|
|
|
* @param array $classes An array of classes (prefixes as keys and locations as values)
|
|
|
+ *
|
|
|
+ * @api
|
|
|
*/
|
|
|
public function registerPrefixes(array $classes)
|
|
|
{
|
|
@@ -159,6 +171,8 @@ class UniversalClassLoader
|
|
|
*
|
|
|
* @param string $prefix The classes prefix
|
|
|
* @param array|string $paths The location(s) of the classes
|
|
|
+ *
|
|
|
+ * @api
|
|
|
*/
|
|
|
public function registerPrefix($prefix, $paths)
|
|
|
{
|
|
@@ -169,6 +183,8 @@ class UniversalClassLoader
|
|
|
* Registers this instance as an autoloader.
|
|
|
*
|
|
|
* @param Boolean $prepend Whether to prepend the autoloader or not
|
|
|
+ *
|
|
|
+ * @api
|
|
|
*/
|
|
|
public function register($prepend = false)
|
|
|
{
|