Exceptions
2 weeks ago
Facades
2 weeks ago
Testing
2 weeks ago
Traits
2 weeks ago
AggregateServiceProvider.php
2 years ago
Benchmark.php
2 weeks ago
Carbon.php
2 weeks ago
Composer.php
2 weeks ago
ConfigurationUrlParser.php
2 weeks ago
DateFactory.php
2 weeks ago
Env.php
2 weeks ago
Fluent.php
2 weeks ago
HigherOrderTapProxy.php
2 years ago
HtmlString.php
2 years ago
InteractsWithTime.php
2 years ago
Js.php
2 weeks ago
Lottery.php
2 weeks ago
Manager.php
2 years ago
MessageBag.php
2 weeks ago
MultipleInstanceManager.php
2 weeks ago
NamespacedItemResolver.php
2 weeks ago
Optional.php
2 weeks ago
Pluralizer.php
2 weeks ago
ProcessUtils.php
2 weeks ago
Reflector.php
2 weeks ago
ServiceProvider.php
2 years ago
Str.php
2 weeks ago
Stringable.php
2 weeks ago
Timebox.php
2 weeks ago
ValidatedInput.php
2 weeks ago
ViewErrorBag.php
2 weeks ago
helpers.php
2 weeks ago
AggregateServiceProvider.php
47 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Support; |
| 4 | |
| 5 | /** @internal */ |
| 6 | class AggregateServiceProvider extends ServiceProvider |
| 7 | { |
| 8 | /** |
| 9 | * The provider class names. |
| 10 | * |
| 11 | * @var array |
| 12 | */ |
| 13 | protected $providers = []; |
| 14 | /** |
| 15 | * An array of the service provider instances. |
| 16 | * |
| 17 | * @var array |
| 18 | */ |
| 19 | protected $instances = []; |
| 20 | /** |
| 21 | * Register the service provider. |
| 22 | * |
| 23 | * @return void |
| 24 | */ |
| 25 | public function register() |
| 26 | { |
| 27 | $this->instances = []; |
| 28 | foreach ($this->providers as $provider) { |
| 29 | $this->instances[] = $this->app->register($provider); |
| 30 | } |
| 31 | } |
| 32 | /** |
| 33 | * Get the services provided by the provider. |
| 34 | * |
| 35 | * @return array |
| 36 | */ |
| 37 | public function provides() |
| 38 | { |
| 39 | $provides = []; |
| 40 | foreach ($this->providers as $provider) { |
| 41 | $instance = $this->app->resolveProvider($provider); |
| 42 | $provides = \array_merge($provides, $instance->provides()); |
| 43 | } |
| 44 | return $provides; |
| 45 | } |
| 46 | } |
| 47 |