Skip to content

Commit

Permalink
3.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
philipobenito committed Aug 13, 2018
1 parent 72ce2d7 commit 4de7747
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All Notable changes to `League\Container` will be documented in this file

## 3.2.0

### Added
- Added ability to add definition as not shared when container is set to default to shared.
- Added `{set|get}Concrete` to definitions to allow for better use of `extend`.

## 3.1.0

### Added
Expand Down
10 changes: 10 additions & 0 deletions docs/3.x/definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@ $container = (new League\Container\Container)->defaultToShared();
$container->add(Acme\Foo::class);
~~~

To define a definition not to be shared when the container is set to default to shared, we can reverse the functionality of defining it as shared.

~~~ php
<?php declare(strict_types=1);

$container = (new League\Container\Container)->defaultToShared();

$container->add(Acme\Foo::class, Acme\Foo::class, $shared = false);
~~~

If we have a definition marked as shared and we want to force the retrieval of a new instance, we can pass a second argument to Container on `get`.

~~~ php
Expand Down
2 changes: 1 addition & 1 deletion docs/_data/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
name: League\Container 3.x
type: Current
requires: PHP >= 7.0.0
release: 3.1.0 - 2018-08
release: 3.2.0 - 2018-08
support: Ongoing
url: /3.x/
menu:
Expand Down
14 changes: 7 additions & 7 deletions docs/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
</div>

<!-- Scripts -->
<script src="{{ "assets/js/jquery.min.js" | absolute_url }}"></script>
<script src="{{ "assets/js/jquery.scrolly.min.js" | absolute_url }}"></script>
<script src="{{ "assets/js/jquery.scrollex.min.js" | absolute_url }}"></script>
<script src="{{ "assets/js/skel.min.js" | absolute_url }}"></script>
<script src="{{ "assets/js/util.js" | absolute_url }}"></script>
<!--[if lte IE 8]><script src="{{ "assets/js/ie/respond.min.js" | absolute_url }}"></script><![endif]-->
<script src="{{ "assets/js/main.js" | absolute_url }}"></script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>
10 changes: 5 additions & 5 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<title>{{ site.title }}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<!--[if lte IE 8]><script src="{{ "assets/js/ie/html5shiv.js" | relative_url }}"></script><![endif]-->
<link rel="stylesheet" href="{{ "assets/css/main.css" | relative_url }}" />
<link rel="stylesheet" href="{{ "assets/css/pygments.css" | relative_url }}" />
<!--[if lte IE 9]><link rel="stylesheet" href="{{ "assets/css/ie9.css" | relative_url }}" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="{{ "assets/css/ie8.css" | relative_url }}" /><![endif]-->
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="stylesheet" href="assets/css/pygments.css" />
<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
</head>
2 changes: 1 addition & 1 deletion src/Definition/Definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function getConcrete()
/**
* {@inheritdoc}
*/
public function setConcrete($concrete): DefinitionInterface
public function setConcrete($concrete) : DefinitionInterface
{
$this->concrete = $concrete;

Expand Down
2 changes: 1 addition & 1 deletion src/Definition/DefinitionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getConcrete();
*
* @return DefinitionInterface
*/
public function setConcrete($concrete): DefinitionInterface;
public function setConcrete($concrete) : DefinitionInterface;

/**
* Add an argument to be injected.
Expand Down

0 comments on commit 4de7747

Please sign in to comment.