diff --git a/DependencyInjection/ArtgrisFileManagerExtension.php b/DependencyInjection/ArtgrisFileManagerExtension.php index 4bc4b71..8eac1fe 100644 --- a/DependencyInjection/ArtgrisFileManagerExtension.php +++ b/DependencyInjection/ArtgrisFileManagerExtension.php @@ -5,7 +5,7 @@ use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader; -use Symfony\Component\HttpKernel\DependencyInjection\Extension; +use Symfony\Component\DependencyInjection\Extension\Extension; /** * @author Arthur Gribet diff --git a/Helpers/FileManager.php b/Helpers/FileManager.php index 26ffd3b..2c57e92 100644 --- a/Helpers/FileManager.php +++ b/Helpers/FileManager.php @@ -151,7 +151,7 @@ public function getRoute(): ?string public function getRoutePath(): ?string { - return implode('/', array_map('rawurlencode', explode('/', $this->getRoute()))); + return implode('/', array_map('rawurlencode', explode('/', $this->getRoute() ?? ''))); } public function getBasePath(): bool|string