Skip to content

Commit 3d8de23

Browse files
Ammadeuss RaducanAmmadeuss Raducan
authored andcommitted
update composer.json, typo service provider key
1 parent 0f61a02 commit 3d8de23

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Facade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ class Facade extends \Illuminate\Support\Facades\Facade {
88
* {@inheritDoc}
99
*/
1010
protected static function getFacadeAccessor() {
11-
return 'HTML2DomParser';
11+
return 'HTMLDomParser';
1212
}
1313
}

ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function boot()
2323
*/
2424
public function register()
2525
{
26-
$this->app->bind('HTML2DomParser', function ($app) {
26+
$this->app->bind('HTMLDomParser', function ($app) {
2727
return new HtmlDomParser;
2828
});
2929
}

composer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"description": "Laravel wrapper for the PHP Simple HTML DOM Parser package",
44
"keywords": [
55
"dom parser",
6+
"html dom parser",
67
"laravel"
78
],
89
"require": {
10+
"php": ">=5.6",
11+
"illuminate/support": "^5.2",
912
"sunra/php-simple-html-dom-parser": "^1.5"
1013
},
1114
"homepage": "https://github.com/ammadeuss/html-dom-parser",
@@ -18,5 +21,15 @@
1821
],
1922
"autoload": {
2023
"psr-4": { "Ammadeuss\\LaravelHtmlDomParser\\": "" }
24+
},
25+
"extra": {
26+
"laravel": {
27+
"providers": [
28+
"Ammadeuss\\LaravelHtmlDomParser"
29+
],
30+
"aliases": {
31+
"HTMLDomParser": "Ammadeuss\\LaravelHtmlDomParser\\Facade"
32+
}
33+
}
2134
}
2235
}

0 commit comments

Comments
 (0)