Laravel\Envoy\TaskContainer::getMacros PHP Method

getMacros() public method

Getter for macros.
public getMacros ( ) : array
return array
    public function getMacros()
    {
        return $this->macros;
    }

Usage Example

Beispiel #1
0
 /**
  * List the macros from the container.
  *
  * @param  \Laravel\Envoy\TaskContainer  $container
  * @return void
  */
 protected function listMacros($container)
 {
     $this->output->writeln('<comment>Available stories:</comment>');
     foreach (array_keys($container->getMacros()) as $macro) {
         $this->output->writeln("  <info>{$macro}</info>");
     }
 }