Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoc72 committed Sep 16, 2024
1 parent f0639fc commit ad5030d
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 64 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ or arrays. It's based on [Symfony Config](https://symfony.com/doc/current/compon
[Propel configuration sub-system](https://github.com/propelorm/Propel2/tree/master/src/Propel/Common/Config).

Supported configuration file formats are:
- __.ini__

- __.json__ via PHP json extension
- __.neon__ via [Nette Neon](https://github.com/nette/neon) library
- __.php__
Expand Down
2 changes: 1 addition & 1 deletion docs/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,5 @@ $connection = new Connection(
);
$template = new Template();
$template->setDir($config->get('paths.template');
$template->setDir($config->get('paths.template'));
```
3 changes: 1 addition & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ Building a configuration is a three-step process:

We ship loaders for the following file formats:

- __.ini__
- __.json__ via PHP json extension
- __.neon__ via [Nette Neon](https://github.com/nette/neon) library
- __.php__
- __.xml__ via PHP SimpleXml, Xml and Dom extensions
- __.xml__ via [Susina xml to array](https://github.com/susina/xml-to-array) library
- __.yml__ via [Symfony Yaml](https://symfony.com/doc/current/components/yaml.html) component


Expand Down
56 changes: 0 additions & 56 deletions docs/ini.md

This file was deleted.

3 changes: 1 addition & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ Here are the list of supported file formats and the libraries to load:

|Format|Supported file extension|Library to load|Installation|
|------|------------------------|---------------|-------|
|_ini_|.ini, .ini.dist|Bundled with PHP by default|enabled by default|
|_json_|.json, .json.dist|Bundled with PHP by default|enabled by default|
|_neon_|.neon, .neon.dist|[Nette Neon](https://ne-on.org/)|`composer require nette/neon`|
|_php_|.php, .php.dist|PHP itself|none|
|_xml_|.xml, .xml.dist|[simple-xml](https://www.php.net/manual/en/book.simplexml.php), [lib-xml](https://www.php.net/manual/en/book.libxml.php) and [dom](https://www.php.net/manual/en/dom.setup.php) PHP extensions|Usually enabled by default (please, check your PHP configuration)|
|_xml_|.xml, .xml.dist|[Susina Xml To Array](https://github.com/susina/xml-to-array)|Automatically installed by composer|
|_yaml_|.yaml, .yml, .yaml.dist, .yml.dist|[Symfony Yaml](https://symfony.com/doc/current/components/yaml.html)|`composer require symfony/yaml`|
2 changes: 1 addition & 1 deletion docs/parameters.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The Configuration Builder supports the definition of some _parameters_ in your configuration file (any format). This functionality is inspired on [Symfony ParameterBag](https://github.com/symfony/symfony/blob/5.4/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php).
The Configuration Builder supports the definition of some _parameters_ in your configuration file (any format). This functionality is inspired on [Symfony ParameterBag](https://github.com/symfony/symfony/blob/5.4/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php) and it's implemented by using [Susina ParamResolver](https://github.com/susina/param-resolver) library.

A parameter is a previously defined property, put between `%` special character. When the builder found a parameter, it simply replaces its placeholder with the previously defined value. In example:

Expand Down
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ nav:
- Usage: usage.md
- Reference:
- Api: methods.md
- ini Format Reference: ini.md
- Parameters reference: parameters.md
- Complete Example: example.md
- About:
Expand Down

0 comments on commit ad5030d

Please sign in to comment.