SignatureServiceProviderInterface.php 620 Bytes
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php

namespace League\Container\ServiceProvider;

interface SignatureServiceProviderInterface
{
    /**
     * Set a custom signature for the service provider. This enables
     * registering the same service provider multiple times.
     *
     * @param  string $signature
     * @return self
     */
    public function withSignature($signature);

    /**
     * The signature of the service provider uniquely identifies it, so
     * that we can quickly determine if it has already been registered.
     * Defaults to get_class($provider).
     *
     * @return string
     */
    public function getSignature();
}