From e1ae018c15dd841b1d057b6404c502d27c1a78ed Mon Sep 17 00:00:00 2001 From: harryxu Date: Fri, 29 Mar 2013 15:15:38 +0800 Subject: [PATCH] Fixed name conflict with laravel builtin html. --- src/Jonob/HTML/HTMLFacade.php | 4 ++-- src/Jonob/HTML/HTMLServiceProvider.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Jonob/HTML/HTMLFacade.php b/src/Jonob/HTML/HTMLFacade.php index ce6d8bb..043ce05 100644 --- a/src/Jonob/HTML/HTMLFacade.php +++ b/src/Jonob/HTML/HTMLFacade.php @@ -9,6 +9,6 @@ class HTMLFacade extends Facade { * * @return string */ - protected static function getFacadeAccessor() { return 'html'; } + protected static function getFacadeAccessor() { return 'HTML'; } -} \ No newline at end of file +} diff --git a/src/Jonob/HTML/HTMLServiceProvider.php b/src/Jonob/HTML/HTMLServiceProvider.php index 9340f13..199aacc 100644 --- a/src/Jonob/HTML/HTMLServiceProvider.php +++ b/src/Jonob/HTML/HTMLServiceProvider.php @@ -29,7 +29,7 @@ public function boot() */ public function register() { - $this->app['html'] = $this->app->share(function($app) + $this->app['HTML'] = $this->app->share(function($app) { return new HTML($app['url']); }); @@ -42,7 +42,7 @@ public function register() */ public function provides() { - return array('html'); + return array('HTML'); } -} \ No newline at end of file +}