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/src/Resolver/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/laminas/laminas-di/src/Resolver/DependencyResolverInterface.php
<?php

declare(strict_types=1);

namespace Laminas\Di\Resolver;

use Laminas\Di\Exception\MissingPropertyException;
use Psr\Container\ContainerInterface;

/**
 * Interface for implementing dependency resolvers
 *
 * The dependency resolver is used by the dependency injector or the
 * code generator to gather the types and values to inject
 */
interface DependencyResolverInterface
{
    /**
     * Set the ioc container
     *
     * @param ContainerInterface $container The ioc container to utilize for
     *     checking for instances
     * @return self Should provide a fluent interface
     */
    public function setContainer(ContainerInterface $container);

    /**
     * Resolve a type prefernece
     *
     * @param string      $type The type/class name of the dependency to resolve the
     *          preference for
     * @param null|string $context The typename of the instance that is created or
     *     in which the dependency should be injected
     * @return null|string Returns the preferred type name or null if there is no
     *     preference
     */
    public function resolvePreference(string $type, ?string $context = null): ?string;

    /**
     * Resolves all parameters for injection
     *
     * @param string $requestedType The class name to resolve the parameters for
     * @param array<mixed> $callTimeParameters Parameters to use as provided.
     * @return InjectionInterface[] Returns the injection parameters as indexed array. This
     *     array contains either TypeInjection or ValueInjection instances
     * @throws MissingPropertyException  When a parameter could not be resolved.
     */
    public function resolveParameters(string $requestedType, array $callTimeParameters = []): array;
}

Spamworldpro Mini