4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Config\Exception;
15 * Exception class for when a circular reference is detected when importing resources.
17 * @author Fabien Potencier <fabien@symfony.com>
19 class FileLoaderImportCircularReferenceException extends FileLoaderLoadException
21 public function __construct(array $resources, $code = null, $previous = null)
23 $message = sprintf('Circular reference detected in "%s" ("%s" > "%s").', $this->varToString($resources[0]), implode('" > "', $resources), $resources[0]);
25 \Exception::__construct($message, $code, $previous);