src/CacheLoader.php
private function doLoadResources(RouteLoaderInterface $loader, $forceValidate)
    {
        $collection = [];

        foreach ($this->resources->all() as $i => $resource) {
            // dont't add the prmary resource to
            $this->current = (string)$resource;

            if ($loaded = $loader->loadRoutes($resource)) {
                $collection[] = $loaded->all();
            }
        }

        $routes = call_user_func_array('array_merge', $collection);

        if ($this->isDebugging() || $forceValidate) {
            $this->writeManifests();
        }

        $this->current = null;
        $this->storage->write(new Routes($routes));
    }
private function doLoadResources(RouteLoaderInterface $loader, $forceValidate)
    {
        $collection = [];

        foreach ($this->resources->all() as $i => $resource) {
            // dont't add the prmary resource to
            $this->current = (string)$resource;

            if ($loaded = $loader->loadRoutes($resource)) {
                $collection[] = $loaded->all();
            }
        }

        $routes = call_user_func_array('array_merge', $collection);

        if ($this->isDebugging() || $forceValidate) {
            $this->writeManifests();
        }

        $this->current = null;
        $this->storage->write(new Routes($routes));
    }
private function doLoadResources ( RouteLoaderInterface $ loader , $ forceValidate ) { $ collection = [ ] ; foreach ( $ this -> resources -> all ( ) as $ i => $ resource ) { // dont't add the prmary resource to $ this -> current = ( string ) $ resource ; if ( $ loaded = $ loader -> loadRoutes ( $ resource ) ) { $ collection [ ] = $ loaded -> all ( ) ; } } $ routes = call_user_func_array ( 'array_merge' , $ collection ) ; if ( $ this -> isDebugging ( ) || $ forceValidate ) { $ this -> writeManifests ( ) ; } $ this -> current = null ; $ this -> storage -> write ( new Routes ( $ routes ) ) ; }
Loads the main resources and caches the results.

If debuggin, all included resources will be put into a manifest file to
keep track of their changes.

@return void
Loads the main resources and caches the results .