c33s-toolkit / core-config-bundle
This package is abandoned and no longer maintained.
No replacement package was suggested.
Base variables to use throughout your project for Symfony 2.8|3+
1.0.0
2017-10-07 09:25 UTC
Requires (Dev)
- codeception/codeception: ^2.3
This package is auto-updated.
Last update: 2022-02-01 13:10:16 UTC
README
Base variables to use throughout your project for Symfony 2.8|3+
Installation
composer require c33s-toolkit/core-config-bundle
Add bundle to your AppKernel.php:
<?php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
// ...
new C33s\Toolkit\CoreConfigBundle\C33sToolkitCoreConfigBundle(),
Copy src/Resources/config/templates/c33s_toolkit_core_config.yaml
and include it
in your project config. Adapt variables to your needs.
Usage
All settings defined in c33s_toolkit_core_config.yaml
will be available as global twig
variables inside your templates:
<footer class="footer">
© {{ c33s_core_config.app.name }} {{ "now"|date("Y") }}
</footer>
This allowes for easier sharing of simple default templates or snippets between projects.