Completed
Push — master ( 416f6b...49c8b6 )
by Ruud
11:29
created

Helper/IconFont/AbstractIconFontLoader.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Kunstmaan\MediaBundle\Helper\IconFont;
4
5
use Symfony\Component\HttpKernel\KernelInterface;
6
7
/**
8
 * AbstractIconFontLoader
9
 */
10
abstract class AbstractIconFontLoader implements IconFontLoaderInterface
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $rootPath;
16
17
    /**
18
     * @param KernelInterface $kernel
19
     */
20
    public function __construct(KernelInterface $kernel)
21
    {
22
        $this->rootPath = dirname($kernel->getRootDir());
0 ignored issues
show
Deprecated Code introduced by
The method Symfony\Component\HttpKe...Interface::getRootDir() has been deprecated with message: since Symfony 4.2

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
23
    }
24
}
25