Pop\Loader\Autoloader::factory PHP Method

factory() public static method

Static method to instantiate the autoloader object
public static factory ( boolean $self = true ) : Autoloader
$self boolean
return Autoloader
    public static function factory($self = true)
    {
        return new self($self);
    }

Usage Example

Beispiel #1
0
 public function testAutoloader()
 {
     $a = new Autoloader();
     $a->splAutoloadRegister();
     $this->assertInstanceOf('Pop\\Loader\\Autoloader', $a);
     $this->assertInstanceOf('Pop\\Loader\\Autoloader', Autoloader::factory());
 }
All Usage Examples Of Pop\Loader\Autoloader::factory