Nwidart\Modules\Repository::addPath PHP Méthode

addPath() public méthode

Alternative method for "addPath".
public addPath ( string $path )
$path string
    public function addPath($path)
    {
        return $this->addLocation($path);
    }

Usage Example

 /** @test */
 public function it_adds_location_to_paths()
 {
     $this->repository->addLocation('some/path');
     $this->repository->addPath('some/other/path');
     $paths = $this->repository->getPaths();
     $this->assertCount(2, $paths);
     $this->assertEquals('some/path', $paths[0]);
     $this->assertEquals('some/other/path', $paths[1]);
 }