Skip to content

Commit 7f26a03

Browse files
mathielenweaverryan
authored andcommitted
Update components/dependency_injection/compilation.rst
fixed variable names in sample
1 parent d997593 commit 7f26a03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dependency_injection/compilation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ and use them as metadata for the cache::
209209
$file = __DIR__ .'/cache/container.php';
210210
$containerConfigCache = new ConfigCache($file, $isDebug);
211211

212-
if (!$cache->isFresh()) {
212+
if (!$containerConfigCache->isFresh()) {
213213
$containerBuilder = new ContainerBuilder();
214214
//--
215-
$container->compile();
215+
$containerBuilder->compile();
216216

217217
$dumper = new PhpDumper($containerBuilder);
218218
$containerConfigCache->write(

0 commit comments

Comments
 (0)