Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin de Graaf committed Aug 9, 2018
1 parent 28fb884 commit 1c36117
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Example usage of a straightforward situation:
```php
use \Parable\Di\Container;

$container = new Container();

$app = $container->get(App::class);
$app->run();
```
Expand All @@ -16,6 +18,8 @@ Example usage of an interface-hinted dependency:
```php
use \Parable\Di\Container;

$container = new Container();

class App
{
public function __construct(ThatInterface $classWithInterface)
Expand All @@ -35,6 +39,8 @@ Example usage of a class that needs the di itself:
```php
use \Parable\Di\Container;

$container = new Container();

class App
{
public $container;
Expand Down

0 comments on commit 1c36117

Please sign in to comment.