Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
vendor
/
liip
/
imagine-bundle
/
Config
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/vendor/liip/imagine-bundle/Config/StackCollection.php
<?php /* * This file is part of the `liip/LiipImagineBundle` project. * * (c) https://github.com/liip/LiipImagineBundle/graphs/contributors * * For the full copyright and license information, please view the LICENSE.md * file that was distributed with this source code. */ namespace Liip\ImagineBundle\Config; final class StackCollection { private $stacks = []; /** * @var StackBuilderInterface */ private $stackBuilder; /** * @var array */ private $filtersConfiguration; public function __construct(StackBuilderInterface $stackBuilder, array $filtersConfiguration = []) { $this->stackBuilder = $stackBuilder; $this->filtersConfiguration = $filtersConfiguration; } /** * @return StackInterface[] */ public function getStacks() { if (!empty($this->stacks)) { return $this->stacks; } foreach ($this->filtersConfiguration as $filterSetName => $filterSetData) { $this->stacks[] = $this->stackBuilder->build($filterSetName, $filterSetData); } return $this->stacks; } }