protected function createActor($name, $directory, $suiteConfig)
    {
        $file = $this->createDirectoryFor(
            $directory,
            $name
        ) . $this->getShortClassName($name);
        $file .= '.php';

        $suiteConfig['namespace'] = $this->namespace;
        $config = Configuration::mergeConfigs(Configuration::$defaultSuiteSettings, $suiteConfig);

        $actorGenerator = new Lib\Generator\Actor($config);

        $content = $actorGenerator->produce();

        $this->createFile($file, $content);
        $this->sayInfo("$name actor has been created in $directory");

        $actionsGenerator = new Lib\Generator\Actions($config);
        $content = $actionsGenerator->produce();

        $generatedDir = $directory . DIRECTORY_SEPARATOR . '_generated';
        $this->createDirectoryFor($generatedDir, 'Actions.php');
        $this->createFile($generatedDir . DIRECTORY_SEPARATOR . $actorGenerator->getActorName() . 'Actions.php', $content);
        $this->sayInfo("Actions have been loaded");
    }
protected function createActor($name, $directory, $suiteConfig)
    {
        $file = $this->createDirectoryFor(
            $directory,
            $name
        ) . $this->getShortClassName($name);
        $file .= '.php';

        $suiteConfig['namespace'] = $this->namespace;
        $config = Configuration::mergeConfigs(Configuration::$defaultSuiteSettings, $suiteConfig);

        $actorGenerator = new Lib\Generator\Actor($config);

        $content = $actorGenerator->produce();

        $this->createFile($file, $content);
        $this->sayInfo("$name actor has been created in $directory");

        $actionsGenerator = new Lib\Generator\Actions($config);
        $content = $actionsGenerator->produce();

        $generatedDir = $directory . DIRECTORY_SEPARATOR . '_generated';
        $this->createDirectoryFor($generatedDir, 'Actions.php');
        $this->createFile($generatedDir . DIRECTORY_SEPARATOR . $actorGenerator->getActorName() . 'Actions.php', $content);
        $this->sayInfo("Actions have been loaded");
    }
protected function createActor ( $ name , $ directory , $ suiteConfig ) { $ file = $ this -> createDirectoryFor ( $ directory , $ name ) . $ this -> getShortClassName ( $ name ) ; $ file .= '.php' ; $ suiteConfig [ 'namespace' ] = $ this -> namespace ; $ config = Configuration :: mergeConfigs ( Configuration :: $ defaultSuiteSettings , $ suiteConfig ) ; $ actorGenerator = new Lib \ Generator \ Actor ( $ config ) ; $ content = $ actorGenerator -> produce ( ) ; $ this -> createFile ( $ file , $ content ) ; $ this -> sayInfo ( "$name actor has been created in $directory" ) ; $ actionsGenerator = new Lib \ Generator \ Actions ( $ config ) ; $ content = $ actionsGenerator -> produce ( ) ; $ generatedDir = $ directory . DIRECTORY_SEPARATOR . '_generated' ; $ this -> createDirectoryFor ( $ generatedDir , 'Actions.php' ) ; $ this -> createFile ( $ generatedDir . DIRECTORY_SEPARATOR . $ actorGenerator -> getActorName ( ) . 'Actions.php' , $ content ) ; $ this -> sayInfo ( "Actions have been loaded" ) ; }
Create an Actor class and generate actions for it.
Requires a suite config as array in 3rd parameter.

@param $name
@param $directory
@param $suiteConfig
Create an Actor class and generate actions for it . Requires a suite config as array in 3rd parameter .