Commit a731ac1d authored by Crell's avatar Crell
Browse files

Merge branch '1400748-namespaces' into dbtngtng

parents b5e33f62 89a813c7
Drupal Components are independent libraries that do not depend on the rest of
Drupal in order to function. Components MAY depend on other Components, but
that is discouraged. Components MAY NOT depend on any code that is not part of
PHP itself or another Drupal component.
PHP itself or another Drupal Component.
Each Component should be in its own namespace, and should be as self-contained
as possible. It should be possible to split a Component off to its own
......
Code in the Core namespace represents Drupal subsystems provided by the base
system. These subsystems MAY depend on Drupal Components and other Subsystems,
but MAY NOT depend on any code in a module.
Code in the Drupal\Core namespace represents Drupal Subsystems provided by the
base system. These subsystems MAY depend on Drupal Components and other
Subsystems, but MAY NOT depend on any code in a module.
Each Component should be in its own namespace, and should be as self-contained
Each Subsystem should be in its own namespace, and should be as self-contained
as possible.
The core/lib directory is for classes provided by Drupal Core that are original
to Drupal. All Drupal-originated code must follow the PSR-0 naming convention
for classes and namespaces as documented here:
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
The vendor namespace for Drupal-originated code is "Drupal".
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment