src/Rocketeer/Services/Bootstrapper/Modules/UserBootstrapper.php
protected function bootstrapStandaloneFiles()
    {
        $files = $this->files->listFiles($this->paths->getUserlandPath(), true);

        // Build queue, placing tasks first, events after
        $queue = [];
        foreach ($files as $file) {
            $path = $this->files->getAdapter()->applyPathPrefix($file['path']);
            if (mb_strpos($path, 'tasks') !== false) {
                array_unshift($queue, $path);
            } else {
                $queue[] = $path;
            }
        }

        // Include files
        foreach ($queue as $path) {
            include $path;
        }
    }
protected function bootstrapStandaloneFiles()
    {
        $files = $this->files->listFiles($this->paths->getUserlandPath(), true);

        // Build queue, placing tasks first, events after
        $queue = [];
        foreach ($files as $file) {
            $path = $this->files->getAdapter()->applyPathPrefix($file['path']);
            if (mb_strpos($path, 'tasks') !== false) {
                array_unshift($queue, $path);
            } else {
                $queue[] = $path;
            }
        }

        // Include files
        foreach ($queue as $path) {
            include $path;
        }
    }
protected function bootstrapStandaloneFiles ( ) { $ files = $ this -> files -> listFiles ( $ this -> paths -> getUserlandPath ( ) , true ) ; // Build queue, placing tasks first, events after $ queue = [ ] ; foreach ( $ files as $ file ) { $ path = $ this -> files -> getAdapter ( ) -> applyPathPrefix ( $ file [ 'path' ] ) ; if ( mb_strpos ( $ path , 'tasks' ) !== false ) { array_unshift ( $ queue , $ path ) ; } else { $ queue [ ] = $ path ; } } // Include files foreach ( $ queue as $ path ) { include $ path ; } }
Bootstrap the user's standalone files.
Bootstrap the user s standalone files .