* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Config; use Symfony\Component\Config\Resource\ResourceInterface; use Symfony\Component\Config\ResourceCheckerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** * @author Maxime Steinhausser */ class ContainerParametersResourceChecker implements ResourceCheckerInterface { /** @var ContainerInterface */ private $container; public function __construct(ContainerInterface $container) { $this->container = $container; } /** * {@inheritdoc} */ public function supports(ResourceInterface $metadata) { return $metadata instanceof ContainerParametersResource; } /** * {@inheritdoc} */ public function isFresh(ResourceInterface $resource, $timestamp) { foreach ($resource->getParameters() as $key => $value) { if (!$this->container->hasParameter($key) || $this->container->getParameter($key) !== $value) { return false; } } return true; } } __halt_compiler();----SIGNATURE:----oADA+uiRh5TWgDMyxKgxF0+eGUxL54h1ygd7qwPrqKIYF4hWbfSH99O3PSvF3AA+A+T1CKTyaVwZkEhXZjjvNVHu4oWrZiKrdvY4N+v5z1v1JZE8gvblqNUkHoEyFNJLTS8pJ9A9bAdOC9j5cdkpIcUgtofk0nreysSiZfn5mxd9myJViKJRgw9bZO6UdUJwMHHOlY/6ErNPs9ygVyIVrWmqjbdgYwM8S97wjTzWun+wfq3cE5exaeZKxA0N/zsp5pVIGg0te+ZDCk50+f1TrumsHc+wKlGMEKQDKYEsW/bsgoU68/Ixpaf9lF3c0xnF8UYR/cUd+vq8y8a5KsYPRXdZITBpj0eWRTFxttmSIB6+Twh5oE93kK40DN0DJTWe3W0x+7/4VOfd+5FTmwStoGMrc9GWAEgCxalSODNwNvW3h2MM7PDSPpm8f66aIGZr9Dd7dIBKFw3bIAOBFr8TzzbNhDCSTXstWRNXMa4l4JIHkPi5gc1Y/6srs6Toh+tMCj4C6eSJ/KYr6vn3ei1Mg8VAQycCBg3QHxiNX5Ezt69gJOx4A+g3+3aMwPgDtrNNvwrPmiWB8McEqOm3K5Fpb7VFbGRxSldAvz8IR68kcjQWeA1B2Mn1ZS0bj6h0RUe3pM1ixJ5WqxyyNTf2qnS444vScFCBiSbVpSwPo+Rl+gw=----ATTACHMENT:----MzAzNzg1OTMwMDU5Mzg2MCA2OTY4NjIyMzQ4ODQyNjY3IDI5MDI2Njc4NjEyMjI0MDc=