Exceptions
1 month ago
Facades
1 month ago
Testing
1 month ago
Traits
1 month ago
AggregateServiceProvider.php
2 years ago
Benchmark.php
1 month ago
Carbon.php
1 month ago
Composer.php
1 month ago
ConfigurationUrlParser.php
1 month ago
DateFactory.php
1 month ago
Env.php
1 month ago
Fluent.php
1 month ago
HigherOrderTapProxy.php
2 years ago
HtmlString.php
2 years ago
InteractsWithTime.php
2 years ago
Js.php
1 month ago
Lottery.php
1 month ago
Manager.php
2 years ago
MessageBag.php
1 month ago
MultipleInstanceManager.php
1 month ago
NamespacedItemResolver.php
1 month ago
Optional.php
1 month ago
Pluralizer.php
1 month ago
ProcessUtils.php
1 month ago
Reflector.php
1 month ago
ServiceProvider.php
2 years ago
Str.php
1 month ago
Stringable.php
1 month ago
Timebox.php
1 month ago
ValidatedInput.php
1 month ago
ViewErrorBag.php
1 month ago
helpers.php
1 month 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 |