Skip to content
Snippets Groups Projects
Select Git revision
  • 7.x-1.6
  • 7.x-1.x default
  • 7.x-1.6-beta1
  • 7.x-1.5
  • 7.x-1.5-beta1
  • 7.x-1.4
  • 7.x-1.3
  • 7.x-1.2
  • 7.x-1.1
  • 7.x-1.0
  • 7.x-1.0-alpha3
  • 7.x-1.0-alpha2
  • 7.x-1.0-alpha1
13 results

psr0

  • Open with
  • Download source code
  • Your workspaces

      A workspace is a virtual sandbox environment for your code in GitLab.

      No agents available to create workspaces. Please consult Workspaces documentation for troubleshooting.

  • Roman Zimmermann's avatar
    Merge pull request #3 from moreonion/fix-2
    Roman Zimmermann authored and GitHub committed
    Don’t cache paths for non-enabled modules.
    f4787727
    History
    Name Last commit Last update
    README.txt
    psr0.info
    psr0.module
    -- SUMMARY --
    
    This module implements a simple PSR-4 class autoloader for Drupal modules and
    profiles. Take a look at the following examples for classes and where PSR-4
    tries to find their declaration.
    
      Drupal\your_module\YourClass -> your_module/lib/YourClass.php
      Drupal\your_module\SomeInterface -> your_module/lib/SomeInterface.php
      Drupal\your_module\Namespace\Class -> your_module/lib/Namespace/Class.php
      Drupal\your_profile\SomeClass -> profiles/your_profile/lib/SomeClass.php
    
    -- REQUIREMENTS --
    
    * Requires PHP >= 5.3.0 for namespaces to work.
    
    -- INSTALLATION --
    
    * Install as usual, see https://drupal.org/node/895323 for further information.
    * Works as soon as the module is enabled without further configuration.
    
    -- FAQ --
    
    Q: Why is it called psr0 if it implements PSR-4?
    
    A: At the time of it's writing PSR-0 was the standard used by Drupal 8, but it
       soon changed to PSR-4 after that. Module short-names can only be set once.
       So I'm stuck with psr0.