Pop\Project\Project::factory PHP Method

factory() public static method

Static method to instantiate the project object and return itself to facilitate chaining methods together.
public static factory ( mixed $config = null, array $module = null, Router $router = null ) : Project
$config mixed
$module array
$router Pop\Mvc\Router
return Project
    public static function factory($config = null, array $module = null, Router $router = null)
    {
        return new static($config, $module, $router);
    }

Usage Example

Example #1
0
 public function testFactory()
 {
     $this->assertInstanceOf('Pop\\Project\\Project', Project::factory(new Config(array())));
 }