Drupal Object oriented programming for version 7 (before 8 version). You can consider this module like an abstract class. It contains all logic use by your child module. your project becomes easier to organize (features oriented) and more maintainable (IMHO). This (work in progress) module is load at very first in your module stack.
- Clone this repository
- Extract the module in
sites/all/modules
and install it :
drush en droop7 -y
cd droop7
composer install
- Make the
droop7/cache
folder writable - Generate your child module (see the next section above)
Take a look in droop7/examples
Here is the arborescence :
myproject
- app
-
- config
-
-
- config.xml
-
-
-
- services.xml
-
-
- routing
-
-
- routes.php
-
- src
-
- Test
-
-
- Module
-
-
-
-
- TestFeature
-
-
-
-
-
-
- Resources
-
-
-
-
-
-
-
-
- views
-
-
-
-
-
-
-
-
- TestFeatureBuilder.php
-
-
-
-
-
-
-
- TestFeatureController.php
-
-
-
-
-
-
-
- TestFeatureProcess.php
-
-
-
In future, this module must be auto-generate for you !
TODO: Auto-generate your child module, ready to work.