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

Breadcrumb

  1. Drupal Core 11.1.x

InstantiatorInterface.php

Same filename in this branch
  1. 11.1.x vendor/symfony/dependency-injection/LazyProxy/Instantiator/InstantiatorInterface.php

Namespace

Doctrine\Instantiator

File

vendor/doctrine/instantiator/src/Doctrine/Instantiator/InstantiatorInterface.php

View source
<?php

declare (strict_types=1);
namespace Doctrine\Instantiator;

use Doctrine\Instantiator\Exception\ExceptionInterface;

/**
 * Instantiator provides utility methods to build objects without invoking their constructors
 */
interface InstantiatorInterface {
    
    /**
     * @phpstan-param class-string<T> $className
     *
     * @phpstan-return T
     *
     * @throws ExceptionInterface
     *
     * @template T of object
     */
    public function instantiate(string $className) : object;

}

Interfaces

Title Deprecated Summary
InstantiatorInterface Instantiator provides utility methods to build objects without invoking their constructors

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal