# imagify/2.3.0/vendor/league/container/src/ServiceProvider/AbstractServiceProvider.php

Imagify Image Optimization: Optimize Images | Compress &amp; Convert to WebP/AVIF, version 2.3.0. 29 lines.

- Page: https://pluginprobe.com/plugins/imagify/2.3.0/code/vendor/league/container/src/ServiceProvider/AbstractServiceProvider.php
- Raw: https://pluginprobe.com/plugins/imagify/2.3.0/raw/vendor/league/container/src/ServiceProvider/AbstractServiceProvider.php
- Modified: 2026-05-25T15:55:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/imagify/2.3.0/code/vendor/league/container/src/ServiceProvider/AbstractServiceProvider.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Imagify\Dependencies\League\Container\ServiceProvider;

use Imagify\Dependencies\League\Container\ContainerAwareTrait;

abstract class AbstractServiceProvider implements ServiceProviderInterface
{
    use ContainerAwareTrait;

    /**
     * @var string
     */
    protected $identifier;

    public function getIdentifier(): string
    {
        return $this->identifier ?? get_class($this);
    }

    public function setIdentifier(string $id): ServiceProviderInterface
    {
        $this->identifier = $id;
        return $this;
    }
}

```
