protected function createSeed()
	{
		$templateTags = [];
		$seedsDirectory = $this->cmd->getConfigOpt('seeds_storage');

		$filename = trim($this->cmd->question('Seed filename?'));
		$templateTags['phx:class'] = Helper::getQualifiedClassName($filename);

		$path = $seedsDirectory . '/' . $filename . '.php';

		if (file_exists($path)) {
			throw new SeedFileInvalidException(
				sprintf(
					'Seed file [%s] exists.',
					$filename
				)
			);
		}

		$builder = new TemplateBuilder($this->cmd, $this->env);
		$builder->createClassTemplate('seed', $filename, $seedsDirectory, $templateTags);
	}
protected function createSeed()
	{
		$templateTags = [];
		$seedsDirectory = $this->cmd->getConfigOpt('seeds_storage');

		$filename = trim($this->cmd->question('Seed filename?'));
		$templateTags['phx:class'] = Helper::getQualifiedClassName($filename);

		$path = $seedsDirectory . '/' . $filename . '.php';

		if (file_exists($path)) {
			throw new SeedFileInvalidException(
				sprintf(
					'Seed file [%s] exists.',
					$filename
				)
			);
		}

		$builder = new TemplateBuilder($this->cmd, $this->env);
		$builder->createClassTemplate('seed', $filename, $seedsDirectory, $templateTags);
	}
protected function createSeed ( ) { $ templateTags = [ ] ; $ seedsDirectory = $ this -> cmd -> getConfigOpt ( 'seeds_storage' ) ; $ filename = trim ( $ this -> cmd -> question ( 'Seed filename?' ) ) ; $ templateTags [ 'phx:class' ] = Helper :: getQualifiedClassName ( $ filename ) ; $ path = $ seedsDirectory . '/' . $ filename . '.php' ; if ( file_exists ( $ path ) ) { throw new SeedFileInvalidException ( sprintf ( 'Seed file [%s] exists.' , $ filename ) ) ; } $ builder = new TemplateBuilder ( $ this -> cmd , $ this -> env ) ; $ builder -> createClassTemplate ( 'seed' , $ filename , $ seedsDirectory , $ templateTags ) ; }
Create new seed class.

@access 	protected
@return 	<void>
Create new seed class .