Skip to content

Commit

Permalink
update composer.json, typo service provider key
Browse files Browse the repository at this point in the history
  • Loading branch information
Ammadeuss Raducan authored and Ammadeuss Raducan committed Mar 6, 2018
1 parent 0f61a02 commit 3d8de23
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Facade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ class Facade extends \Illuminate\Support\Facades\Facade {
* {@inheritDoc}
*/
protected static function getFacadeAccessor() {
return 'HTML2DomParser';
return 'HTMLDomParser';
}
}
2 changes: 1 addition & 1 deletion ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function boot()
*/
public function register()
{
$this->app->bind('HTML2DomParser', function ($app) {
$this->app->bind('HTMLDomParser', function ($app) {
return new HtmlDomParser;
});
}
Expand Down
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
"description": "Laravel wrapper for the PHP Simple HTML DOM Parser package",
"keywords": [
"dom parser",
"html dom parser",
"laravel"
],
"require": {
"php": ">=5.6",
"illuminate/support": "^5.2",
"sunra/php-simple-html-dom-parser": "^1.5"
},
"homepage": "https://github.com/ammadeuss/html-dom-parser",
Expand All @@ -18,5 +21,15 @@
],
"autoload": {
"psr-4": { "Ammadeuss\\LaravelHtmlDomParser\\": "" }
},
"extra": {
"laravel": {
"providers": [
"Ammadeuss\\LaravelHtmlDomParser"
],
"aliases": {
"HTMLDomParser": "Ammadeuss\\LaravelHtmlDomParser\\Facade"
}
}
}
}

0 comments on commit 3d8de23

Please sign in to comment.