Skip to content

Commit

Permalink
Rename interface for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
gbprod committed Feb 15, 2017
1 parent 6025dc2 commit 9cefbd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ This repository contains a proposition for **standard service providers** (servi

## Usage

To declare a service provider, simply implement the `ServiceProvider` interface.
To declare a service provider, simply implement the `ServiceProviderInterface` interface.

```php
use Interop\Container\ServiceProvider;
use Interop\Container\ServiceProviderInterface;

class MyServiceProvider implements ServiceProvider
class MyServiceProvider implements ServiceProviderInterface
{
public function getServices()
{
Expand Down Expand Up @@ -91,7 +91,7 @@ A service provider can provide PHP objects (services) as well as any value. Simp
To alias a container entry to another, you can get the aliased entry from the container and return it:

```php
class MyServiceProvider implements ServiceProvider
class MyServiceProvider implements ServiceProviderInterface
{
public function getServices()
{
Expand All @@ -117,7 +117,7 @@ Overriding an entry defined in another service provider is as easy as defining i
Module A:

```php
class A implements ServiceProvider
class A implements ServiceProviderInterface
{
public function getServices()
{
Expand All @@ -136,7 +136,7 @@ class A implements ServiceProvider
Module B:

```php
class B implements ServiceProvider
class B implements ServiceProviderInterface
{
public function getServices()
{
Expand All @@ -161,7 +161,7 @@ Extending an entry before it is returned by the container is very similar to ove
Module A:

```php
class A implements ServiceProvider
class A implements ServiceProviderInterface
{
public function getServices()
{
Expand All @@ -180,7 +180,7 @@ class A implements ServiceProvider
Module B:

```php
class B implements ServiceProvider
class B implements ServiceProviderInterface
{
public function getServices()
{
Expand Down Expand Up @@ -233,7 +233,7 @@ The service created by a factory should only depend on the input parameters of t
If the factory needs to fetch parameters, those should be fetched from the container directly.

```php
class MyServiceProvider implements ServiceProvider
class MyServiceProvider implements ServiceProviderInterface
{
public function getServices()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* A service provider provides entries to a container.
*/
interface ServiceProvider
interface ServiceProviderInterface
{
/**
* Returns a list of all container entries registered by this service provider.
Expand Down

0 comments on commit 9cefbd3

Please sign in to comment.