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

Breadcrumb

  1. Drupal Core 11.1.x

drupal-autoloader.php

File

vendor/mglaman/phpstan-drupal/drupal-autoloader.php

View source
<?php

declare (strict_types=1);
use mglaman\PHPStanDrupal\Drupal\DrupalAutoloader;
use PHPStan\DependencyInjection\Container;
if (!isset($container)) {
    throw new \PHPStan\ShouldNotHappenException('The autoloader did not receive the container.');
}
if (!$container instanceof Container) {
    throw new \PHPStan\ShouldNotHappenException('The autoloader did not receive the container.');
}
if (!defined('DRUPAL_TEST_IN_CHILD_SITE')) {
    define('DRUPAL_TEST_IN_CHILD_SITE', false);
}
$drupalAutoloader = new DrupalAutoloader();
$drupalAutoloader->register($container);

API Navigation

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