Your IP : 216.73.216.43


Current Path : /proc/thread-self/root/var/www/surf/TYPO3/vendor/typo3/cms-frontend/Configuration/
Upload File :
Current File : //proc/thread-self/root/var/www/surf/TYPO3/vendor/typo3/cms-frontend/Configuration/Services.php

<?php

declare(strict_types=1);

namespace TYPO3\CMS\Frontend;

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator, ContainerBuilder $container) {
    $container->addCompilerPass(new class () implements CompilerPassInterface {
        public function process(ContainerBuilder $container): void
        {
            foreach ($container->findTaggedServiceIds('frontend.contentobject') as $id => $tags) {
                $container->findDefinition($id)->setShared(false);
            }
        }
    });
};