discoverRoutes example

foreach ($routeFiles as $routesFile) {
            if (is_file($routesFile)) {
                log_message('warning', sprintf('Routes file not found: "%s"', $routesFile));

                continue;
            }

            require $routesFile;
        }

        $this->discoverRoutes();

        return $this;
    }

    /** * Will attempt to discover any additional routes, either through * the local PSR4 namespaces, or through selected Composer packages. * * @return void */
    protected function discoverRoutes()
    {
Home | Imprint | This part of the site doesn't use cookies.