Giter Site home page Giter Site logo

Comments (4)

greg0ire avatar greg0ire commented on August 16, 2024

Dumping the container definitions just before the extension tries to get the cache backend service definition gives me the following result :

array (size=26)
  0 => string 'sonata.block.service.container' (length=30)
  1 => string 'sonata.block.service.empty' (length=26)
  2 => string 'sonata.block.service.text' (length=25)
  3 => string 'sonata.block.service.rss' (length=24)
  4 => string 'sonata.block.service.menu' (length=25)
  5 => string 'sonata.block.service.template' (length=29)
  6 => string 'sonata.block.form.type.block' (length=28)
  7 => string 'sonata.block.form.type.container_template' (length=41)
  8 => string 'sonata.block.manager' (length=20)
  9 => string 'sonata.block.context_manager.default' (length=36)
  10 => string 'sonata.block.renderer.default' (length=29)
  11 => string 'sonata.block.twig.extension' (length=27)
  12 => string 'sonata.block.templating.helper' (length=30)
  13 => string 'sonata.block.loader.chain' (length=25)
  14 => string 'sonata.block.loader.service' (length=27)
  15 => string 'sonata.block.twig.global' (length=24)
  16 => string 'sonata.block.cache.handler.default' (length=34)
  17 => string 'sonata.block.cache.handler.noop' (length=31)
  18 => string 'sonata.block.exception.strategy.manager' (length=39)
  19 => string 'sonata.block.exception.filter.keep_none' (length=39)
  20 => string 'sonata.block.exception.filter.keep_all' (length=38)
  21 => string 'sonata.block.exception.filter.debug_only' (length=40)
  22 => string 'sonata.block.exception.filter.ignore_block_exception' (length=52)
  23 => string 'sonata.block.exception.renderer.inline' (length=38)
  24 => string 'sonata.block.exception.renderer.inline_debug' (length=44)
  25 => string 'sonata.block.exception.renderer.throw' (length=37)

There are only sonata block service definitions…

from sonatablockbundle.

greg0ire avatar greg0ire commented on August 16, 2024

I'm using Symfony 2.5-BETA2

from sonatablockbundle.

greg0ire avatar greg0ire commented on August 16, 2024

This makes sense if you look at the following piece of code :

        foreach ($container->getExtensions() as $name => $extension) {
            if (!$config = $container->getExtensionConfig($name)) {
                // this extension was not called
                continue;
            }
            $config = $container->getParameterBag()->resolveValue($config);

            $tmpContainer = new ContainerBuilder($container->getParameterBag());
            $tmpContainer->setResourceTracking($container->isTrackingResources());
            $tmpContainer->addObjectResource($extension);

            $extension->load($config, $tmpContainer);

            $container->merge($tmpContainer);
        }

It is a temporaryContainer every time. The question is : has this ever worked, and how is it supposed to work in the first place ? I think I got something wrong about the configuration.

from sonatablockbundle.

greg0ire avatar greg0ire commented on August 16, 2024

I think I got it : the sonata.cache.esi is not a suitable value.

from sonatablockbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.