protected function registerBootstrap()
    {
        $directory = $this->getBootstrapPath();

        if (! is_dir($directory)) {
            return;
        }

        $files = Finder::create()
            ->files()
            ->name('/^.+\.php$/')
            ->notName('routes.php')
            ->notName('navigation.php')
            ->in($directory)
            ->sort(function (SplFileInfo $a) {
                return $a->getFilename() != 'bootstrap.php';
            });

        foreach ($files as $file) {
            require_once $file;
        }
    }
protected function registerBootstrap()
    {
        $directory = $this->getBootstrapPath();

        if (! is_dir($directory)) {
            return;
        }

        $files = Finder::create()
            ->files()
            ->name('/^.+\.php$/')
            ->notName('routes.php')
            ->notName('navigation.php')
            ->in($directory)
            ->sort(function (SplFileInfo $a) {
                return $a->getFilename() != 'bootstrap.php';
            });

        foreach ($files as $file) {
            require_once $file;
        }
    }
protected function registerBootstrap ( ) { $ directory = $ this -> getBootstrapPath ( ) ; if ( ! is_dir ( $ directory ) ) { return ; } $ files = Finder :: create ( ) -> files ( ) -> name ( '/^.+\.php$/' ) -> notName ( 'routes.php' ) -> notName ( 'navigation.php' ) -> in ( $ directory ) -> sort ( function ( SplFileInfo $ a ) { return $ a -> getFilename ( ) != 'bootstrap.php' ; } ) ; foreach ( $ files as $ file ) { require_once $ file ; } }
Register bootstrap file.
Register bootstrap file .