This repository was archived by the owner on Feb 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
7.x 2.x config
Andy Truong edited this page Feb 14, 2014
·
2 revisions
Simple API to read config values from YAML files.
If you have a yaml file like this (atest_config depends on at_base)
# at_base/tests/atest_config/config/config.yml
foo: barYou can read foo value with this code:
echo at_config('atest_config')->get('foo'); // barYaml file can import data from other files:
imports:
- { resource: to_be_imported.yml }
foo: barGet all services definitions of all modules which implements it
<?php
at_container('helper.config_fetcher')
->getItems('at_base', 'services', 'services', $include_base = TRUE)
;Get specific service definition
<?php
at_container('helper.config_fetcher')
->getItem('at_base', 'services', 'services', 'twig', $include_base = TRUE)
; ___ ___________ _ _
/ _ \_ _| ___ \ | | | |
/ /_\ \| | | |_/ / __ _ ___ ___ _ __ ___ ___ __| |_ _| | ___
| _ || | | ___ \/ _` / __|/ _ \ | '_ ` _ \ / _ \ / _` | | | | |/ _ \
| | | || | | |_/ / (_| \__ \ __/_| | | | | | (_) | (_| | |_| | | __/
\_| |_/\_/ \____/ \__,_|___/\___(_)_| |_| |_|\___/ \__,_|\__,_|_|\___|
- Caching
- Twig template
- twig Service
- twig_string Service
- Recipes
- Extends
- Easy Block
- Easy Routing
- Easy Breadcrumb
- Entity Template
- Drush Commands:
- Functions:
- Misc
- Status
- Tools for Development enviroment
- /devel/php improved
- /at/sql
- /at/twig
- Kint integration