Notice: fwrite(): Write of 350 bytes failed with errno=122 Disk quota exceeded in /home/bestofi/bestof/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 159 Symfony Profiler
Symfony Profiler
vendor/symfony/config/Resource/ClassExistenceResource.php line 76
<?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\Config\Resource;
/**
* ClassExistenceResource represents a class existence.
* Freshness is only evaluated against resource existence.
*
* The resource must be a fully-qualified class name.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final
*/
class ClassExistenceResource implements SelfCheckingResourceInterface
{
private string $resource;
private ?array $exists = null;
private static int $autoloadLevel = 0;
private static ?string $autoloadedClass = null;
private static array $existsCache = [];
/**
* @param string $resource The fully-qualified class name
* @param bool|null $exists Boolean when the existency check has already been done
*/
public function __construct(string $resource, bool $exists = null)
{
$this->resource = $resource;
if (null !== $exists) {
$this->exists = [$exists, null];
}
}
public function __toString(): string
{
return $this->resource;
}
public function getResource(): string
{
return $this->resource;
}
/**
* @throws \ReflectionException when a parent class/interface/trait is not found