]> Raphaël G. Git Repositories - packbundle/blob - Util/MapUtil.php
Enable error bubbling
[packbundle] / Util / MapUtil.php
1 <?php declare(strict_types=1);
2
3 /*
4 * This file is part of the Rapsys PackBundle package.
5 *
6 * (c) Raphaël Gertz <symfony@rapsys.eu>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Rapsys\PackBundle\Util;
13
14 use Psr\Container\ContainerInterface;
15
16 use Rapsys\PackBundle\RapsysPackBundle;
17
18 use Symfony\Component\Filesystem\Exception\IOExceptionInterface;
19 use Symfony\Component\Filesystem\Filesystem;
20 use Symfony\Component\Routing\RouterInterface;
21
22 /**
23 * Manages map
24 */
25 class MapUtil {
26 /**
27 * Alias string
28 */
29 protected string $alias;
30
31 /**
32 * Config array
33 */
34 protected array $config;
35
36 /**
37 * Creates a new image util
38 *
39 * @param ContainerInterface $container The container instance
40 * @param RouterInterface $router The RouterInterface instance
41 * @param SluggerUtil $slugger The SluggerUtil instance
42 */
43 public function __construct(protected ContainerInterface $container, protected RouterInterface $router, protected SluggerUtil $slugger) {
44 //Retrieve config
45 $this->config = $container->getParameter($this->alias = RapsysPackBundle::getAlias());
46 }
47 }