loadProviders() public static method

loadProviders
public static loadProviders ( ) : Windwalker\DI\ServiceProviderInterface[]
return Windwalker\DI\ServiceProviderInterface[]
Example #1
0
 /**
  * loadProviders
  *
  * @return  ServiceProviderInterface[]
  */
 public static function loadProviders()
 {
     /*
      * Get Global Providers
      * -----------------------------------------
      * If you want a provider can be used in every applications (for example: Web and Console),
      * set it in Windwalker\Windwalker object.
      */
     $providers = array_merge(parent::loadProviders(), Windwalker::loadProviders());
     // Custom Providers here...
     $providers['debug'] = new Provider\WhoopsProvider();
     return $providers;
 }