Comments (4)
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.
I'm using Symfony 2.5-BETA2
from sonatablockbundle.
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.
I think I got it : the sonata.cache.esi
is not a suitable value.
from sonatablockbundle.
Related Issues (20)
- Bug in (lazy-loading) group property on validator component HOT 1
- sonata-project/cache abandoned but still required HOT 2
- Add tag `sonata.block` to services implementing `BlockServiceInterface` HOT 1
- Sonata Block Bundle Edit form dont save EntityType HOT 1
- Remove Sonata cache HOT 3
- Problem to use the last version 4.17 HOT 2
- Deprecate ContainerBlockService on 4.x HOT 3
- Dependency SonataCache abandoned HOT 1
- With a twig error, blocks profiler KO Notice: unserialize(): Error at offset HOT 5
- Create `UPGRADE-4.0.md` HOT 4
- Remove Sonata Cache HOT 9
- Can't install block bundle on symfony 4.3 HOT 3
- Make BlockExtension a lazy extension HOT 1
- Upgrade block-bundle to 4.x in sonata-project bundles HOT 5
- Return only string in BlockContextInterface::getTemplate HOT 4
- Saving a block assign the wrong template to that block
- Saving a child block assign the wrong type to that block (breaking the page composer forever)
- Use a service locator for `BlockServiceManager` HOT 3
- BlockBundle navigation menu is incorrectly duplicated to TimelineBundle navigation menu HOT 1
- Not enough information about User Deprecated: sonata-project/block-bundle HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonatablockbundle.