mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 05:36:54 +02:00
feat(entries): add ability to init custom macros and directives
This commit is contained in:
@@ -116,7 +116,7 @@ class Entries
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
private function initFieldsMacros(array $macros): void
|
||||
private function initMacros(array $macros): void
|
||||
{
|
||||
foreach ($macros as $key => $value) {
|
||||
if ($key == 'debug') {
|
||||
@@ -136,7 +136,7 @@ class Entries
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
private function initFieldsDirectives(array $directives): void
|
||||
private function initDirectives(array $directives): void
|
||||
{
|
||||
foreach ($directives as $key => $value) {
|
||||
if (filesystem()->file(ROOT_DIR . $value['path'])->exists()) {
|
||||
|
Reference in New Issue
Block a user