Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / league / container / src / ServiceProvider / AbstractServiceProvider.php
1 <?php
2
3 namespace League\Container\ServiceProvider;
4
5 use League\Container\ContainerAwareTrait;
6
7 abstract class AbstractServiceProvider implements ServiceProviderInterface
8 {
9     use ContainerAwareTrait;
10
11     /**
12      * @var array
13      */
14     protected $provides = [];
15
16     /**
17      * {@inheritdoc}
18      */
19     public function provides($alias = null)
20     {
21         if (! is_null($alias)) {
22             return (in_array($alias, $this->provides));
23         }
24
25         return $this->provides;
26     }
27 }