Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/laminas/laminas-di/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/laminas/laminas-di/templates/factory.template
<?php

/**
 * Generated factory for %class%
 */

declare(strict_types=1);

%namespace%
use Laminas\Di\CodeGenerator\FactoryInterface;
use Psr\Container\ContainerInterface;
%use_array_key_exists%
use function is_array;

/**
 * @template-implements FactoryInterface<%class%>
 */
final class %factory_class% implements FactoryInterface
{
    public function create(ContainerInterface $container, array $options = []): %class%
    {%options_to_args_code%%psalm_suppress%
        return new %class%(%args%);
    }

    /**
     * @param array<mixed>|string|null $name
     * @param array<mixed>|null $options
     */
    public function __invoke(ContainerInterface $container, $name = null, array $options = null): %class%
    {
        if (is_array($name) && $options === null) {
            $options = $name;
        }

        return $this->create($container, $options ?? []);
    }
}

Spamworldpro Mini