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

getUsedNow() public méthode

Get module used for cli session.
public getUsedNow ( ) : string
Résultat string
    public function getUsedNow()
    {
        return $this->findOrFail($this->app['files']->get($this->getUsedStoragePath()));
    }

Usage Example

 /** @test */
 public function it_sets_used_module()
 {
     $this->repository->addLocation(__DIR__ . '/stubs/Recipe');
     $this->repository->setUsed('Recipe');
     $this->assertEquals('Recipe', $this->repository->getUsed());
     $this->assertEquals('Recipe', $this->repository->getUsedNow());
 }