]> Raphaël G. Git Repositories - packbundle/blob - Util/FacebookUtil.php
Remove default format value
[packbundle] / Util / FacebookUtil.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\Generator\UrlGeneratorInterface;
21 use Symfony\Component\Routing\RouterInterface;
22
23 /**
24 * Helps manage facebook images
25 */
26 class FacebookUtil {
27 /**
28 * Alias string
29 */
30 protected string $alias;
31
32 /**
33 * Config array
34 */
35 protected array $config;
36
37 /**
38 * Creates a new facebook util
39 *
40 * @param ContainerInterface $container The container instance
41 * @param RouterInterface $router The RouterInterface instance
42 * @param SluggerUtil $slugger The SluggerUtil instance
43 */
44 public function __construct(protected ContainerInterface $container, protected RouterInterface $router, protected SluggerUtil $slugger) {
45 //Retrieve config
46 $this->config = $container->getParameter($this->alias = RapsysPackBundle::getAlias());
47 }
48 }