PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 2.2
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v2.2
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / classes / Dependencies / League / Container / ServiceProvider / AbstractServiceProvider.php

AbstractServiceProvider.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 2.2, at classes/Dependencies/League/Container/ServiceProvider/AbstractServiceProvider.php

47 lines 883 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php declare(strict_types=1);
2
3 namespace Imagify\Dependencies\League\Container\ServiceProvider;
4
5 use Imagify\Dependencies\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 * @var string
18 */
19 protected $identifier;
20
21 /**
22 * {@inheritdoc}
23 */
24 public function provides(string $alias) : bool
25 {
26 return in_array($alias, $this->provides, true);
27 }
28
29 /**
30 * {@inheritdoc}
31 */
32 public function setIdentifier(string $id) : ServiceProviderInterface
33 {
34 $this->identifier = $id;
35
36 return $this;
37 }
38
39 /**
40 * {@inheritdoc}
41 */
42 public function getIdentifier() : string
43 {
44 return $this->identifier ?? get_class($this);
45 }
46 }
47