protected function buildActorsForConfig( $configFile ) {
		$config = $this->getGlobalConfig( $configFile );
		$suites = $this->getSuites( $configFile );

		$path = pathinfo( $configFile );
		$dir = isset( $path['dirname'] ) ? $path['dirname'] : getcwd();

		foreach ( $config['include'] as $subConfig ) {
			$this->output->writeln( "<comment>Included Configuration: $subConfig</comment>" );
			$this->buildActorsForConfig( $dir . DIRECTORY_SEPARATOR . $subConfig );
		}

		if ( !empty( $suites ) ) {
			$this->output->writeln( "<info>Building Actor classes for suites: " . implode( ', ', $suites ) . '</info>' );
		}
		foreach ( $suites as $suite ) {
			$settings = $this->getSuiteConfig( $suite, $configFile );
			$gen = new ActorGenerator( $settings );
			$this->output->writeln( '<info>' . Configuration::config()['namespace'] . '\\' . $gen->getActorName() . "</info> includes modules: " . implode( ', ', $gen->getModules() ) );
			$contents = $gen->produce();

			@mkdir( $settings['path'], 0755, true );
			$file = $settings['path'] . $this->getClassName( $settings['class_name'] ) . '.php';
			$this->save( $file, $contents, true );
			$this->output->writeln( "{$settings['class_name']}.php generated successfully. " . $gen->getNumMethods() . " methods added" );
		}
	}
protected function buildActorsForConfig( $configFile ) {
		$config = $this->getGlobalConfig( $configFile );
		$suites = $this->getSuites( $configFile );

		$path = pathinfo( $configFile );
		$dir = isset( $path['dirname'] ) ? $path['dirname'] : getcwd();

		foreach ( $config['include'] as $subConfig ) {
			$this->output->writeln( "<comment>Included Configuration: $subConfig</comment>" );
			$this->buildActorsForConfig( $dir . DIRECTORY_SEPARATOR . $subConfig );
		}

		if ( !empty( $suites ) ) {
			$this->output->writeln( "<info>Building Actor classes for suites: " . implode( ', ', $suites ) . '</info>' );
		}
		foreach ( $suites as $suite ) {
			$settings = $this->getSuiteConfig( $suite, $configFile );
			$gen = new ActorGenerator( $settings );
			$this->output->writeln( '<info>' . Configuration::config()['namespace'] . '\\' . $gen->getActorName() . "</info> includes modules: " . implode( ', ', $gen->getModules() ) );
			$contents = $gen->produce();

			@mkdir( $settings['path'], 0755, true );
			$file = $settings['path'] . $this->getClassName( $settings['class_name'] ) . '.php';
			$this->save( $file, $contents, true );
			$this->output->writeln( "{$settings['class_name']}.php generated successfully. " . $gen->getNumMethods() . " methods added" );
		}
	}
protected function buildActorsForConfig ( $ configFile ) { $ config = $ this -> getGlobalConfig ( $ configFile ) ; $ suites = $ this -> getSuites ( $ configFile ) ; $ path = pathinfo ( $ configFile ) ; $ dir = isset ( $ path [ 'dirname' ] ) ? $ path [ 'dirname' ] : getcwd ( ) ; foreach ( $ config [ 'include' ] as $ subConfig ) { $ this -> output -> writeln ( "<comment>Included Configuration: $subConfig</comment>" ) ; $ this -> buildActorsForConfig ( $ dir . DIRECTORY_SEPARATOR . $ subConfig ) ; } if ( ! empty ( $ suites ) ) { $ this -> output -> writeln ( "<info>Building Actor classes for suites: " . implode ( ', ' , $ suites ) . '</info>' ) ; } foreach ( $ suites as $ suite ) { $ settings = $ this -> getSuiteConfig ( $ suite , $ configFile ) ; $ gen = new ActorGenerator ( $ settings ) ; $ this -> output -> writeln ( '<info>' . Configuration :: config ( ) [ 'namespace' ] . '\\' . $ gen -> getActorName ( ) . "</info> includes modules: " . implode ( ', ' , $ gen -> getModules ( ) ) ) ; $ contents = $ gen -> produce ( ) ; @ mkdir ( $ settings [ 'path' ] , 0755 , true ) ; $ file = $ settings [ 'path' ] . $ this -> getClassName ( $ settings [ 'class_name' ] ) . '.php' ; $ this -> save ( $ file , $ contents , true ) ; $ this -> output -> writeln ( "{$settings['class_name']}.php generated successfully. " . $ gen -> getNumMethods ( ) . " methods added" ) ; } }
Builds actors for suites.

@since 1.0.0

@access protected
@param string $configFile Alternative config file name.
Builds actors for suites .