You are here

README.txt in Service Container 7.2

Same filename in this branch
  1. 7.2 lib/Drupal/Component/README.txt
  2. 7.2 lib/Drupal/Component/Gettext/README.txt
Same filename and directory in other branches
  1. 7 lib/Drupal/Component/README.txt
Drupal Components are independent libraries that do not depend on the rest of
Drupal in order to function.

Components MAY depend on other Drupal Components or external libraries/packages,
but MUST NOT depend on any other Drupal code.

In other words, only dependencies that can be specified in a composer.json file
of the Component are acceptable dependencies.  Every Drupal Component presents a
valid dependency, because it is assumed to contain a composer.json file (even
if it may not exist yet).

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
repository and use as a stand-alone library, independently of Drupal.

File

lib/Drupal/Component/README.txt
View source
  1. Drupal Components are independent libraries that do not depend on the rest of
  2. Drupal in order to function.
  3. Components MAY depend on other Drupal Components or external libraries/packages,
  4. but MUST NOT depend on any other Drupal code.
  5. In other words, only dependencies that can be specified in a composer.json file
  6. of the Component are acceptable dependencies. Every Drupal Component presents a
  7. valid dependency, because it is assumed to contain a composer.json file (even
  8. if it may not exist yet).
  9. Each Component should be in its own namespace, and should be as self-contained
  10. as possible. It should be possible to split a Component off to its own
  11. repository and use as a stand-alone library, independently of Drupal.