public static function autoload()
    {
        // Vendor path
        $dir_base = realpath(__DIR__ . '/../../../../');

        $finder = new Finder();
        $finder->files()
            ->ignoreVCS(true)
            ->ignoreDotFiles(false)
            ->name('service.yml')
            ->exclude('Tests')
            ->exclude('tests')
            ->in($dir_base);

        foreach ($finder as $file) {
            self::autoloadFile($file);
        }
    }
public static function autoload()
    {
        // Vendor path
        $dir_base = realpath(__DIR__ . '/../../../../');

        $finder = new Finder();
        $finder->files()
            ->ignoreVCS(true)
            ->ignoreDotFiles(false)
            ->name('service.yml')
            ->exclude('Tests')
            ->exclude('tests')
            ->in($dir_base);

        foreach ($finder as $file) {
            self::autoloadFile($file);
        }
    }
public static function autoload ( ) { // Vendor path $ dir_base = realpath ( __DIR__ . '/../../../../' ) ; $ finder = new Finder ( ) ; $ finder -> files ( ) -> ignoreVCS ( true ) -> ignoreDotFiles ( false ) -> name ( 'service.yml' ) -> exclude ( 'Tests' ) -> exclude ( 'tests' ) -> in ( $ dir_base ) ; foreach ( $ finder as $ file ) { self :: autoloadFile ( $ file ) ; } }
Auto register services.
@return void
Auto register services .