PHP Classes

File: src/Stempler/src/helpers.php

Recommend this page to a friend!
  Packages of Wolfy-J   spiral   src/Stempler/src/helpers.php   Download  
File: src/Stempler/src/helpers.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: spiral
Modular Web application development framework
Author: By
Last change:
Date: 11 months ago
Size: 473 bytes
 

 

Contents

Class file image Download
<?php

declare(strict_types=1);

if (!\function_exists('inject')) {
    /**
     * Macro function to be replaced by the injected value.
     */
    function inject(string $name, mixed $default = null): mixed
    {
        return $default;
    }
}

if (!\function_exists('injected')) {
    /**
     * Return true if block value has been defined.
     *
     * @psalm-suppress UnusedParam
     */
    function injected(string $name): bool
    {
        return false;
    }
}