mirror of
https://github.com/filp/whoops.git
synced 2026-09-14 11:46:19 +00:00
Re-structure Providers into their own namespace
This commit is contained in:
@@ -19,7 +19,8 @@ This library is currently in a **heavy development phase, and may catch on fire
|
||||
- Stand-alone library with (currently) no required dependencies
|
||||
- Simple API for dealing with exceptions, trace frames & their data
|
||||
- Includes a pretty rad error page for your webapp projects
|
||||
- Includes a `DamnitServiceProvider` for painless integration with [Silex](http://silex.sensiolabs.org/)
|
||||
- Includes a `Silex\DamnitServiceProvider` for painless integration with [Silex](http://silex.sensiolabs.org/)
|
||||
- Includes an `Illuminate\DamnitServiceProvider` for equally painless integration with [Laravel 4](http://laravel.com/)
|
||||
- Easy to extend and integrate with existing libraries
|
||||
- Clean, well-structured & tested code-base (well, except `pretty-template.php`, for now...)
|
||||
|
||||
@@ -50,7 +51,7 @@ I promise it's really simple!
|
||||
|
||||
## Integrating with Silex
|
||||
|
||||
**damnit** comes packaged with a Silex Service Provider: `Damnit\Silex\DamnitServiceProvider`. Using it
|
||||
**damnit** comes packaged with a Silex Service Provider: `Damnit\Provider\Silex\DamnitServiceProvider`. Using it
|
||||
in your existing Silex project is easy:
|
||||
|
||||
```php
|
||||
@@ -62,7 +63,7 @@ use Silex\Application;
|
||||
// ... some awesome code here ...
|
||||
|
||||
if($app['debug']) {
|
||||
$app->register(new Damnit\Silex\DamnitServiceProvider);
|
||||
$app->register(new Damnit\Provider\Silex\DamnitServiceProvider);
|
||||
}
|
||||
|
||||
// ...
|
||||
@@ -92,9 +93,11 @@ https://gist.github.com/hdias/5169713#file-start-php
|
||||
User [@schickling](https://github.com/schickling) contributed a service provider for Laravel 4. Just include this in your app/config/app.php in the "providers" array:
|
||||
|
||||
```php
|
||||
'Damnit\Illuminate\DamnitServiceProvider'
|
||||
'Damnit\Provider\Illuminate\DamnitServiceProvider'
|
||||
```
|
||||
|
||||
Alternatively, [@dberry37388](https://github.com/dberry37388)'s [laravel4-support](https://github.com/dberry37388/laravel4-support) package also integrates **damnit** into your fancy-schmancy Laravel stack.
|
||||
|
||||
## Contributing
|
||||
|
||||
If you want to help, great! Here's a couple of steps/guidelines:
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use Damnit\Silex\DamnitServiceProvider;
|
||||
use Damnit\Provider\Silex\DamnitServiceProvider;
|
||||
use Silex\Application;
|
||||
|
||||
$app = new Application;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
<?php namespace Damnit\Illuminate;
|
||||
<?php namespace Damnit\Provider\Illuminate;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
* @author Filipe Dobreira <http://github.com/filp>
|
||||
*/
|
||||
|
||||
namespace Damnit\Silex;
|
||||
namespace Damnit\Provider\Silex;
|
||||
use Damnit\Run;
|
||||
use Damnit\Handler\PrettyPageHandler;
|
||||
use Silex\ServiceProviderInterface;
|
||||
Reference in New Issue
Block a user