refactoring and adding more dependency injection through ioc container.
This commit is contained in:
@@ -12,6 +12,16 @@ class Package {
|
||||
/**
|
||||
* Load a package or set of packages.
|
||||
*
|
||||
* The package name should correspond to a package directory for your application.
|
||||
*
|
||||
* <code>
|
||||
* // Load the "swift-mailer" package
|
||||
* Package::load('swift-mailer');
|
||||
*
|
||||
* // Load the "swift-mailer" and "facebook" package
|
||||
* Package::load(array('swift-mailer', 'facebook'));
|
||||
* </code>
|
||||
*
|
||||
* @param string|array $packages
|
||||
* @return void
|
||||
*/
|
||||
@@ -31,6 +41,11 @@ class Package {
|
||||
/**
|
||||
* Determine if a given package has been loaded.
|
||||
*
|
||||
* <code>
|
||||
* // Determine if the "swift-mailer" package has been loaded
|
||||
* $loaded = Package::loaded('swift-mailer');
|
||||
* </code>
|
||||
*
|
||||
* @param string $package
|
||||
* @return bool
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user