Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Commit

Permalink
Merge 8b013d9 into b5f9f95
Browse files Browse the repository at this point in the history
  • Loading branch information
emcarru committed Jun 6, 2017
2 parents b5f9f95 + 8b013d9 commit fa48665
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -79,16 +79,16 @@ This will:
This also adds the following hooks:

```php
// Load config files from the `./config` directory.
// Set the config path to './config'.
add_filter('Flynt/configPath', ['Flynt\Defaults', 'setConfigPath'], 999, 2);

// Parse `.json` config files.
add_filter('Flynt/configFileLoader', ['Flynt\Defaults', 'loadConfigFile'], 999, 3);

// Load config files from the `./config` directory.
// Set the component path to `./Components`.
add_filter('Flynt/componentPath', ['Flynt\Defaults', 'setComponentPath'], 999, 2);

// Set the component path to `./Components`.
// Load ./Components/{$componentName}/functions.php from every registered component.
add_action('Flynt/registerComponent', ['Flynt\Defaults', 'loadFunctionsFile']);

// Render `./Components/{$componentName}/index.php` and make view helper functions `$data` and `$area` available (see explanation below).
Expand Down

0 comments on commit fa48665

Please sign in to comment.