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