Commit 0d81c69f authored by noah's avatar noah
Browse files

Correct a couple typos in create-cached-config-container.md

parent 87087442
......@@ -82,7 +82,7 @@ class ConfigContainer extends Container {
// Now store the data in the container builder.
$containerBuilder->setParameter('customGroup', $customGroup);
$containerBuilder->setParameter('customField', $customField);
$containerBuilder->setParameter('childRelationshipType', $childRelationshipType);lder->setParameter('customGroup', $customGroup);
$containerBuilder->setParameter('childRelationshipType', $childRelationshipType);
}
}
```
......@@ -149,7 +149,7 @@ Next we define a `getInstance` function where all the magic happens:
2. In the next bit we define the filename in `$file`. The filename contains an ID of the environment.
3. If the file `$file` exists we will include it and create and return an instance of `MyCachedConfigContainer`, which is a sub class of `ConfigContainer`.
4. In the next bit we will build and create the file `$file`. We do this by creating a new `ContainerBuilder` class and pass this to our earlier defined `build` function of `ConfigContainer` class.
5. Lastly we will write the `ContainerBuilder` to the php file (`$file`) with the `PhpDumer` class. We state that we want to call the class `MyCachedConfigContainer` and that it is a subclass of `ConfigContainer`.
5. Lastly we will write the `ContainerBuilder` to the php file (`$file`) with the `PhpDumper` class. We state that we want to call the class `MyCachedConfigContainer` and that it is a subclass of `ConfigContainer`.
......@@ -287,4 +287,4 @@ class MyCachedConfigContainer extends \Civi\MyExtension\ConfigContainer
* [Symfony Dependency Injection](https://symfony.com/doc/current/components/dependency_injection.html)
* [Singleton creational design pattern](https://refactoring.guru/design-patterns/singleton)
* The [Data Processor extension](https://lab.civicrm.org/extensions/dataprocessor) has a working implementation.
\ No newline at end of file
* The [Data Processor extension](https://lab.civicrm.org/extensions/dataprocessor) has a working implementation.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment