PHP 8.3.31
Preview: ProfilerStateChecker.php Size: 742 B
/proc/self/root/home/getspomw/itechservicellc.com/vendor/symfony/http-kernel/Profiler/ProfilerStateChecker.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpKernel\Profiler;

use Psr\Container\ContainerInterface;

class ProfilerStateChecker
{
    public function __construct(
        private ContainerInterface $container,
        private bool $defaultEnabled,
    ) {
    }

    public function isProfilerEnabled(): bool
    {
        return $this->container->get('profiler')?->isEnabled() ?? $this->defaultEnabled;
    }

    public function isProfilerDisabled(): bool
    {
        return !$this->isProfilerEnabled();
    }
}

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
10.27 KB lrw-r--r-- 2025-10-28 20:23:40
Edit Download
5.03 KB lrw-r--r-- 2025-10-28 20:23:40
Edit Download
6.53 KB lrw-r--r-- 2025-10-28 20:23:40
Edit Download
742 B lrw-r--r-- 2025-10-28 20:23:40
Edit Download
1.67 KB lrw-r--r-- 2025-10-28 20:23:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).