Hello,

Does anybody ever use 
Symfony\Component\DependencyInjection\Dumper\GraphvizDumper in symfony2 
application? I tried dump my services from kernel like this:

$loader = require_once __DIR__.'/../app/bootstrap.php.cache';

require_once __DIR__.'/../app/AppKernel.php';

 

use Symfony\Component\DependencyInjection\Dumper\GraphvizDumper;

 

class MyKernel extends \AppKernel {

    //Hack to get ContainerBuilder from Kernel.

    public $container_builder = null;

    protected function buildContainer() {

      $this->container_builder = parent::buildContainer();

      return $this->container_builder;

    }

}

 

$kernel = new MyKernel('prod', true);

$kernel->boot();

 

$cb = $kernel->container_builder;

$dumper = new GraphvizDumper($cb);

echo $dumper->dump();


But I get exception:

ErrorException: Catchable Fatal Error: Argument 1 passed to 
Symfony\Component\DependencyInjection\Container::addScope() must implement 
interface Symfony\Component\DependencyInjection\ScopeInterface, string 
given, called in ...

I wonder if this class is somehow usable? It is tested only with 
ContainerBuilder created manually (
Symfony\Component\DependencyInjection\Tests\Dumper\GraphvizDumperTest) . I 
couldn't find any documentation how to use it for real application.

Regards
MZak


  

-- 
-- 
If you want to report a vulnerability issue on Symfony, please read the 
procedure on http://symfony.com/security

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Symfony developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to