Skip to content

Commit 58b06ca

Browse files
Updated to the latest version of laravel 5
1 parent 53f25bf commit 58b06ca

File tree

4 files changed

+9
-26
lines changed

4 files changed

+9
-26
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ Checkout the [2.1 branch](https://github.com/GrahamCampbell/Laravel-HTMLMin/tree
4141

4242
## Configuration
4343

44-
Laravel HTMLMin supports optional configuration.
44+
Laravel HTMLMin supports optional configuration through [orchestral/config](https://github.com/orchestral/config).
4545

46-
To get started, first publish the package config file:
46+
If you want an automated way to publish the config, then install [orchestral/publisher](https://github.com/orchestral/publisher).
47+
48+
You can then publish the config file by running:
4749

4850
```bash
4951
$ php artisan publish:config graham-campbell/htmlmin

composer.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,15 @@
99
"email": "[email protected]"
1010
}
1111
],
12-
"repositories": [
13-
{
14-
"type": "vcs",
15-
"url": "https://github.com/GrahamCampbell/framework"
16-
},
17-
{
18-
"type": "vcs",
19-
"url": "https://github.com/GrahamCampbell/html"
20-
},
21-
{
22-
"type": "vcs",
23-
"url": "https://github.com/GrahamCampbell/testbench"
24-
}
25-
],
2612
"require": {
2713
"php": ">=5.4.7",
2814
"illuminate/filesystem": "~5.0",
2915
"illuminate/http": "~5.0",
3016
"illuminate/routing": "~5.0",
3117
"illuminate/support": "~5.0",
3218
"illuminate/view": "~5.0",
19+
"orchestra/config": "~3.0",
20+
"orchestra/support-providers": "~3.0",
3321
"mrclay/minify": "~2.2"
3422
},
3523
"require-dev": {
File renamed without changes.

src/HTMLMinServiceProvider.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace GrahamCampbell\HTMLMin;
1313

1414
use Illuminate\Contracts\Foundation\Application;
15-
use Illuminate\Support\ServiceProvider;
1615
use Illuminate\View\Engines\CompilerEngine;
16+
use Orchestra\Support\Providers\ServiceProvider;
1717

1818
/**
1919
* This is the htmlmin service provider class.
@@ -23,20 +23,13 @@
2323
class HTMLMinServiceProvider extends ServiceProvider
2424
{
2525
/**
26-
* Indicates if loading of the provider is deferred.
27-
*
28-
* @var bool
29-
*/
30-
protected $defer = false;
31-
32-
/**
33-
* Bootstrap the application events.
26+
* Boot the service provider.
3427
*
3528
* @return void
3629
*/
3730
public function boot()
3831
{
39-
$this->package('graham-campbell/htmlmin', 'graham-campbell/htmlmin', __DIR__);
32+
$this->addConfigComponent('graham-campbell/htmlmin', 'graham-campbell/htmlmin', realpath(__DIR__.'/../config'));
4033

4134
if ($this->app['config']['graham-campbell/htmlmin::blade']) {
4235
$this->enableBladeOptimisations($this->app);

0 commit comments

Comments
 (0)