Skip to content

Commit 674b1e4

Browse files
committed
laravel 5.2 / minor version change
1 parent aa0d300 commit 674b1e4

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Laravel | laravel-theme
2929
Edit your project's `composer.json` file to require:
3030

3131
"require": {
32-
"igaster/laravel-theme": "~1.0.0"
32+
"igaster/laravel-theme": "~1.1.0"
3333
}
3434

3535
and install with `composer update`
@@ -146,12 +146,12 @@ This package provides intergration with [Orchestra/Asset](http://orchestraplatfo
146146

147147
To install Orchestra\Asset you must add it in your composer.json (see the [Official Documentation](https://github.com/orchestral/asset)) and then add in your Providers array:
148148

149-
'Orchestra\Asset\AssetServiceProvider',
150-
'Orchestra\Html\HtmlServiceProvider',
149+
Orchestra\Asset\AssetServiceProvider::class,
150+
Collective\Html\HtmlServiceProvider::class,
151151

152-
Add the Asset facade in your `Facades` array in `app/config/app.php`
152+
Add the Asset facade in your `aliases` array in `app/config/app.php`
153153

154-
'Asset' => 'Orchestra\Support\Facades\Asset',
154+
'Asset' => Orchestra\Support\Facades\Asset::class,
155155

156156
Now you can leverage all the power of Orchestra\Asset package. However the syntax can become quite cumbersome when you are using Themes + Orchestra/Asset, so some Blade-specific sugar has been added to ease your work. Here how to build your views:
157157

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.4.0",
15-
"illuminate/support": "5.0.*|5.1.*"
14+
"illuminate/support": ">=5.2.0"
1615
},
1716
"suggest": {
18-
"orchestra/asset" : "Intergrates with orchestra/asset. Allows using '@css' and '@js' in blade files"
17+
"orchestra/asset" : "Use '@css' and '@js' in Blade files"
1918
},
2019
"autoload": {
2120
"psr-4" : {

src/themeServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function register(){
1313
| Bind in IOC
1414
|--------------------------------------------------------------------------*/
1515

16-
$this->app->bindShared('igaster.themes', function(){
16+
$this->app->singleton('igaster.themes', function(){
1717
return new Themes();
1818
});
1919

@@ -28,7 +28,7 @@ public function register(){
2828
| Extend FileViewFinder
2929
|--------------------------------------------------------------------------*/
3030

31-
$this->app->bindShared('view.finder', function($app)
31+
$this->app->singleton('view.finder', function($app)
3232
{
3333
$paths = $app['config']['view.paths'];
3434
return new \igaster\laravelTheme\themeViewFinder($app['files'], $paths);

0 commit comments

Comments
 (0)