PluginProbe
Independent Analytics – WordPress Analytics Plugin / 2.11.1
Independent Analytics – WordPress Analytics Plugin v2.11.1
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 All 120 releases
independent-analytics / vendor / illuminate / support / AggregateServiceProvider.php
AggregateServiceProvider.php
47 lines 1017 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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