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;
}