Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InstantiatorInterface.php

interface InstantiatorInterface

Same name in this branch
  1. 11.1.x vendor/symfony/dependency-injection/LazyProxy/Instantiator/InstantiatorInterface.php \Symfony\Component\DependencyInjection\LazyProxy\Instantiator\InstantiatorInterface

Instantiator provides utility methods to build objects without invoking their constructors

Hierarchy

  • interface \Doctrine\Instantiator\InstantiatorInterface

Expanded class hierarchy of InstantiatorInterface

All classes that implement InstantiatorInterface

File

vendor/doctrine/instantiator/src/Doctrine/Instantiator/InstantiatorInterface.php, line 12

Namespace

Doctrine\Instantiator
View source
interface InstantiatorInterface {
    
    /**
     * @phpstan-param class-string<T> $className
     *
     * @phpstan-return T
     *
     * @throws ExceptionInterface
     *
     * @template T of object
     */
    public function instantiate(string $className) : object;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
InstantiatorInterface::instantiate public function @phpstan-param class-string&lt;T&gt; $className 1
RSS feed
Powered by Drupal