3 namespace League\Container\ServiceProvider;
5 use League\Container\ContainerAwareInterface;
7 interface ServiceProviderInterface extends ContainerAwareInterface
10 * Returns a boolean if checking whether this provider provides a specific
11 * service or returns an array of provided services if no argument passed.
13 * @param string $service
14 * @return boolean|array
16 public function provides($service = null);
19 * Use the register method to register items with the container via the
20 * protected $this->container property or the `getContainer` method
21 * from the ContainerAwareTrait.
25 public function register();