Added vendor/ directory for Composer's installed files
This commit is contained in:
53
vendor/illuminate/support/AggregateServiceProvider.php
vendored
Executable file
53
vendor/illuminate/support/AggregateServiceProvider.php
vendored
Executable file
@ -0,0 +1,53 @@
|
||||
<?php namespace Illuminate\Support;
|
||||
|
||||
class AggregateServiceProvider extends ServiceProvider {
|
||||
|
||||
/**
|
||||
* The provider class names.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $providers = [];
|
||||
|
||||
/**
|
||||
* An array of the service provider instances.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $instances = [];
|
||||
|
||||
/**
|
||||
* Register the service provider.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->instances = [];
|
||||
|
||||
foreach ($this->providers as $provider)
|
||||
{
|
||||
$this->instances[] = $this->app->register($provider);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the services provided by the provider.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function provides()
|
||||
{
|
||||
$provides = [];
|
||||
|
||||
foreach ($this->providers as $provider)
|
||||
{
|
||||
$instance = $this->app->resolveProviderClass($provider);
|
||||
|
||||
$provides = array_merge($provides, $instance->provides());
|
||||
}
|
||||
|
||||
return $provides;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user