Commanding Chaos for Coworking, Open Source and Creative Communities

oop

Use PHP 5.3 namespaces | drupal.org

Wed, 02/29/2012 - 09:30 -- rprice

At the very least (if we are on PHP 5.3) we could have something like:

namespace drupal\dblog;
at the top of every file.

Files in the includes directory would have:

namespace drupal;
The only time 'drupal' would be seen in a function name would be when calling an API function in a different module, e.g.

\drupal\system\flush_caches();

oop
php
drupaleasypodcast
core
drupal8

Adopt PSR-0 namespace convention for core framework classes | drupal.org

Wed, 02/29/2012 - 09:06 -- rprice

1) We've been discussing how and if to leverage PHP namespaces in Drupal 8, now that we have access to them in PHP 5.3. To date most of the discussion has been on tricking out modules-as-namespace, a discussion that has stalled as it is a much more complicated problem space than it seems at first glance.

oop
php
drupaleasypodcast
core
drupal8

Pages

Subscribe to RSS - oop