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

Breadcrumb

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

function PackageInterface::getAutoload

Returns an associative array of autoloading rules

{"<type>": {"<namespace": "<directory>"}}

Type is either "psr-4", "psr-0", "classmap" or "files". Namespaces are mapped to directories for autoloading using the type specified.

@phpstan-return AutoloadRules

Return value

array Mapping of autoloading rules

2 methods override PackageInterface::getAutoload()
AliasPackage::getAutoload in vendor/composer/composer/src/Composer/Package/AliasPackage.php
Returns an associative array of autoloading rules
Package::getAutoload in vendor/composer/composer/src/Composer/Package/Package.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Package/PackageInterface.php, line 303

Class

PackageInterface
Defines the essential information a package has that is used during solving/installation

Namespace

Composer\Package

Code

public function getAutoload() : array;

API Navigation

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