Skip to content

Commit d6d6384

Browse files
committed
v1.0.1
1 parent e140f9d commit d6d6384

File tree

6 files changed

+40
-33
lines changed

6 files changed

+40
-33
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to `laravel-closures-container` will be documented in this file.
44

5+
# v.1.0.1 (2017-10-13)
6+
7+
### Fixed
8+
- composer.json, phpunit.xml, readme.md
9+
10+
### Changed
11+
- IOC binding changed to 'closures'
12+
13+
514
# v.1.0.0 (2017-10-13)
615

716
### Added

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)
66
[![Build Status](https://img.shields.io/travis/lachezargrigorov/laravel-closures-container/master.svg)](https://travis-ci.org/lachezargrigorov/laravel-closures-container)
77
[![Total Downloads](https://poser.pugx.org/lachezargrigorov/laravel-closures-container/downloads)](https://packagist.org/packages/lachezargrigorov/laravel-closures-container)
8+
89
Easy to use closures container. First register the closure then use it anywhere.
910

1011
## Install
@@ -45,7 +46,7 @@ $bool = Closures::isRegistered("sumTwoNumbers");
4546

4647
//using IOC
4748

48-
$closures = app("Closures");
49+
$closures = app("closures");
4950

5051
$closures->register("sumTwoNumbers",function($a,$b)
5152
{

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"LachezarGrigorov\\ClosuresContainer\\ClosuresContainerServiceProvider"
4848
],
4949
"aliases": {
50-
"ClosuresContainer": "LachezarGrigorov\\ClosuresContainer\\Facades\\Facade"
50+
"Closures": "LachezarGrigorov\\ClosuresContainer\\Facades\\Facade"
5151
}
5252
}
5353
},

phpunit.xml

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false">
12-
<testsuites>
13-
<testsuite name="Unit Tests">
14-
<directory suffix="Test.php">./tests/Unit</directory>
15-
</testsuite>
16-
</testsuites>
17-
<filter>
18-
<whitelist processUncoveredFilesFromWhitelist="true">
19-
<directory suffix=".src">./src</directory>
20-
</whitelist>
21-
</filter>
22-
<php>
23-
<env name="APP_ENV" value="testing"/>
24-
<env name="CACHE_DRIVER" value="array"/>
25-
<env name="SESSION_DRIVER" value="array"/>
26-
<env name="QUEUE_DRIVER" value="sync"/>
27-
</php>
2+
<phpunit bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false">
12+
<testsuites>
13+
<testsuite name="Unit Tests">
14+
<directory suffix="Test.php">./tests/Unit</directory>
15+
</testsuite>
16+
</testsuites>
17+
<filter>
18+
<whitelist>
19+
<directory suffix=".php">src/</directory>
20+
</whitelist>
21+
</filter>
22+
<php>
23+
<env name="APP_ENV" value="testing"/>
24+
<env name="CACHE_DRIVER" value="array"/>
25+
<env name="SESSION_DRIVER" value="array"/>
26+
<env name="QUEUE_DRIVER" value="sync"/>
27+
</php>
2828
</phpunit>

src/ClosuresContainerServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function boot()
2222
*/
2323
public function register()
2424
{
25-
$this->app->singleton('ClosuresContainer',function($app)
25+
$this->app->singleton('closures',function($app)
2626
{
2727
return ClosuresContainer::getInstance();
2828
});

src/Facades/Facade.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@
44

55
class Facade extends LaravelFacade {
66

7-
protected static function getFacadeAccessor()
8-
{
9-
return "ClosuresContainer";
10-
}
7+
protected static function getFacadeAccessor() { return 'closures'; }
118
}

0 commit comments

Comments
 (0)