This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Components/DependencyInjection/Dumper/Dumper.php
2010-04-07 07:06:21 +02:00

51 lines
1.2 KiB
PHP

<?php
namespace Symfony\Components\DependencyInjection\Dumper;
use Symfony\Components\DependencyInjection\Builder;
/*
* This file is part of the Symfony framework.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
/**
* Dumper is the abstract class for all built-in dumpers.
*
* @package Symfony
* @subpackage Components_DependencyInjection
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
abstract class Dumper implements DumperInterface
{
protected $container;
/**
* Constructor.
*
* @param Builder $container The service container to dump
*/
public function __construct(Builder $container)
{
$this->container = $container;
}
/**
* Dumps the service container.
*
* @param array $options An array of options
*
* @return string The representation of the service container
*
* @throws \LogicException When this abstrass class is not implemented
*/
public function dump(array $options = array())
{
throw new \LogicException('You must extend this abstract class and implement the dump() method.');
}
}