protected function createHelper($name, $directory)
    {
        $file = $this->createDirectoryFor(
            $dir = $directory . DIRECTORY_SEPARATOR . "Helper",
            "$name.php"
        ) . "$name.php";

        $gen = new Lib\Generator\Helper($name, $this->namespace);
        // generate helper
        $this->createFile(
            $file,
            $gen->produce()
        );
        require_once $file;
        $this->sayInfo("$name helper has been created in $dir");
    }
protected function createHelper($name, $directory)
    {
        $file = $this->createDirectoryFor(
            $dir = $directory . DIRECTORY_SEPARATOR . "Helper",
            "$name.php"
        ) . "$name.php";

        $gen = new Lib\Generator\Helper($name, $this->namespace);
        // generate helper
        $this->createFile(
            $file,
            $gen->produce()
        );
        require_once $file;
        $this->sayInfo("$name helper has been created in $dir");
    }
protected function createHelper ( $ name , $ directory ) { $ file = $ this -> createDirectoryFor ( $ dir = $ directory . DIRECTORY_SEPARATOR . "Helper" , "$name.php" ) . "$name.php" ; $ gen = new Lib \ Generator \ Helper ( $ name , $ this -> namespace ) ; // generate helper $ this -> createFile ( $ file , $ gen -> produce ( ) ) ; require_once $ file ; $ this -> sayInfo ( "$name helper has been created in $dir" ) ; }
Create a helper class inside a directory

@param $name
@param $directory
Create a helper class inside a directory