FeaturePhp/Generator/FileGenerator.php
protected function _generateFiles() {
        foreach ($this->selectedArtifacts as $artifact) {
            $settings = $artifact->getGeneratorSettings(static::getKey());

            foreach ($this->getFileOrDirectorySettings($settings, "files") as $file)
                $this->_processFileSpecification(
                    $artifact, fphp\Specification\FileSpecification::fromArrayAndSettings($file, $settings));

            foreach ($this->getFileOrDirectorySettings($settings, "directories") as $directory) {
                $directorySpecification = fphp\Specification\DirectorySpecification::fromArrayAndSettings($directory, $settings);
                
                foreach ($directorySpecification->getFileSpecifications() as $fileSpecification)
                    $this->_processFileSpecification($artifact, $fileSpecification);
            }
        }
    }
protected function _generateFiles() {
        foreach ($this->selectedArtifacts as $artifact) {
            $settings = $artifact->getGeneratorSettings(static::getKey());

            foreach ($this->getFileOrDirectorySettings($settings, "files") as $file)
                $this->_processFileSpecification(
                    $artifact, fphp\Specification\FileSpecification::fromArrayAndSettings($file, $settings));

            foreach ($this->getFileOrDirectorySettings($settings, "directories") as $directory) {
                $directorySpecification = fphp\Specification\DirectorySpecification::fromArrayAndSettings($directory, $settings);
                
                foreach ($directorySpecification->getFileSpecifications() as $fileSpecification)
                    $this->_processFileSpecification($artifact, $fileSpecification);
            }
        }
    }
protected function _generateFiles ( ) { foreach ( $ this -> selectedArtifacts as $ artifact ) { $ settings = $ artifact -> getGeneratorSettings ( static :: getKey ( ) ) ; foreach ( $ this -> getFileOrDirectorySettings ( $ settings , "files" ) as $ file ) $ this -> _processFileSpecification ( $ artifact , fphp \ Specification \ FileSpecification :: fromArrayAndSettings ( $ file , $ settings ) ) ; foreach ( $ this -> getFileOrDirectorySettings ( $ settings , "directories" ) as $ directory ) { $ directorySpecification = fphp \ Specification \ DirectorySpecification :: fromArrayAndSettings ( $ directory , $ settings ) ; foreach ( $ directorySpecification -> getFileSpecifications ( ) as $ fileSpecification ) $ this -> _processFileSpecification ( $ artifact , $ fileSpecification ) ; } } }
Processes the files and directories.
Processes the files and directories .