Recommend this page to a friend! |
Download .zip |
Info | Example | View files (10) | Download .zip | Reputation | Support forum | Blog (2) | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2015-10-17 (1 year ago) | Not enough user ratings | Total: 333 This week: 2 | All time: 6,749 This week: 591 |
Version | License | PHP version | Categories | |||
pdi 1.0 | GNU General Publi... | 7.0 | Design Patterns, PHP 7 |
Description | Author | |||
This class can autoload dependent objects accessing variables. Innovation Award
|
CONFUSED?? Don't know which of Injector.php or Injector_5.php to choose from? Injector.php has complete support for PHP 7, it's possible you've not heard of PHP 7 yet or you haven't upgraded (which BTW, you must have a very good reason for) So the script has been rewritten (Injector_5.php) with support for the already 'legacy' versions of php. I recommend leaving the import.php script as is, if you are in a development environment, but please try as much as possible to change exit() to some proper logic you use for error reporting in your production environment. Enjoy! Samuel Adeshina |
Files |
File | Role | Description | ||
---|---|---|---|---|
example (4 files) | ||||
src (4 files) | ||||
composer.json | Data | Required Dependencies | ||
README.md | Data | Read Me |
Files | / | example |
File | Role | Description |
---|---|---|
Dependee.php | Class | [Example]Dependee Class |
Depender.php | Class | [Example]Depender Class |
index.php | Example | [Example] Index |
test.php | Example | run this file without an autoloader |
Files | / | src |
File | Role | Description |
---|---|---|
import.php | Aux. | Use in development only |
Injector.php | Class | Main Class. PHP 7 compatible |
Injector_5.php | Class | Main Class. PHP 7 Incompatible |
readme.txt | Doc. | Read Me |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.