phpbb\routing\router::find PHP Method

find() public method

Find a list of controllers
public find ( string $base_path = '' ) : router
$base_path string Base path to prepend to file paths
return router
    public function find($base_path = '')
    {
        if ($this->route_collection === null || $this->route_collection->count() === 0) {
            $this->route_collection = new RouteCollection();
            foreach ($this->routing_files as $file_path) {
                $loader = new YamlFileLoader(new FileLocator($this->filesystem->realpath($base_path)));
                $this->route_collection->addCollection($loader->load($file_path));
            }
        }
        return $this;
    }