public function dump($inputDirectory, $outputDirectory)
    {
        $servicesList = array();

        //browses directory for searching service provider classes
        $directoryIterator = new \DirectoryIterator($inputDirectory);
        foreach ($directoryIterator as $fileInfo) {
            if ($fileInfo->isDot()) continue;
            $servicesList[$fileInfo->getBasename('.php')] = $fileInfo->getPathname();
        }

        //saves generated array to php source file
        FileWriter::writeObject(
            $outputDirectory . self::SERVICES_STATIC_FILE,
            $servicesList,
            true
        );

        ksort($servicesList);
        return $servicesList;
    }
public function dump($inputDirectory, $outputDirectory)
    {
        $servicesList = array();

        //browses directory for searching service provider classes
        $directoryIterator = new \DirectoryIterator($inputDirectory);
        foreach ($directoryIterator as $fileInfo) {
            if ($fileInfo->isDot()) continue;
            $servicesList[$fileInfo->getBasename('.php')] = $fileInfo->getPathname();
        }

        //saves generated array to php source file
        FileWriter::writeObject(
            $outputDirectory . self::SERVICES_STATIC_FILE,
            $servicesList,
            true
        );

        ksort($servicesList);
        return $servicesList;
    }
public function dump ( $ inputDirectory , $ outputDirectory ) { $ servicesList = array ( ) ; //browses directory for searching service provider classes $ directoryIterator = new \ DirectoryIterator ( $ inputDirectory ) ; foreach ( $ directoryIterator as $ fileInfo ) { if ( $ fileInfo -> isDot ( ) ) continue ; $ servicesList [ $ fileInfo -> getBasename ( '.php' ) ] = $ fileInfo -> getPathname ( ) ; } //saves generated array to php source file FileWriter :: writeObject ( $ outputDirectory . self :: SERVICES_STATIC_FILE , $ servicesList , true ) ; ksort ( $ servicesList ) ; return $ servicesList ; }
Dumps services to source file

@param string $inputDirectory
@param string $outputDirectory
@return array
Dumps services to source file