- public function __construct(ContainerInterface $container, IntlUtil $intl, FileLocator $locator, PackageInterface $package, SluggerUtil $slugger) {
- //Set intl util
- $this->intl = $intl;
-
- //Set file locator
- $this->locator = $locator;
-
- //Set assets packages
- $this->package = $package;
-
- //Set slugger util
- $this->slugger = $slugger;
-
- //Retrieve bundle config
- if ($parameters = $container->getParameter(self::getAlias())) {
- //Set config, output and filters arrays
- foreach(['config', 'output', 'filters'] as $k) {
- $this->$k = $parameters[$k];
- }
- }
+ public function __construct(protected IntlUtil $intl, protected FileLocator $locator, protected PackageInterface $package, protected SluggerUtil $slugger, protected array $parameters) {