1 <?php
declare(strict_types
=1);
4 * This file is part of the Rapsys PackBundle package.
6 * (c) Raphaël Gertz <symfony@rapsys.eu>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Rapsys\PackBundle\Util
;
14 use Psr\Container\ContainerInterface
;
16 use Rapsys\PackBundle\RapsysPackBundle
;
18 use Symfony\Component\Filesystem\Exception\IOExceptionInterface
;
19 use Symfony\Component\Filesystem\Filesystem
;
20 use Symfony\Component\Routing\RouterInterface
;
29 protected string $alias;
34 protected array $config;
37 * Creates a new image util
39 * @param ContainerInterface $container The container instance
40 * @param RouterInterface $router The RouterInterface instance
41 * @param SluggerUtil $slugger The SluggerUtil instance
43 public function __construct(protected ContainerInterface
$container, protected RouterInterface
$router, protected SluggerUtil
$slugger) {
45 $this->config
= $container->getParameter($this->alias
= RapsysPackBundle
::getAlias());