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

Breadcrumb

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

function Psr4DirectoryLoader::supports

File

vendor/symfony/routing/Loader/Psr4DirectoryLoader.php, line 49

Class

Psr4DirectoryLoader
A loader that discovers controller classes in a directory that follows PSR-4.

Namespace

Symfony\Component\Routing\Loader

Code

public function supports(mixed $resource, ?string $type = null) : bool {
    return 'attribute' === $type && \is_array($resource) && isset($resource['path'], $resource['namespace']);
}

API Navigation

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