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

get() public méthode

Alternative for "find" method.
public get ( $name ) : mixed | void
$name
Résultat mixed | void
    public function get($name)
    {
        return $this->find($name);
    }

Usage Example

 /** @test */
 public function it_finds_a_module()
 {
     $this->repository->addLocation(__DIR__ . '/stubs/Recipe');
     $this->assertInstanceOf(Module::class, $this->repository->find('recipe'));
     $this->assertInstanceOf(Module::class, $this->repository->get('recipe'));
 }