Skip to content

Commit

Permalink
Fixed markdown syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsgoingd committed Jun 22, 2013
1 parent 0cc4ced commit 5a13b01
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ This extension provides out of the box support for Laravel 4 and Slim 2 framewor

To install latest version simply add it to your `composer.json`:

---
```javascript
"itsgoingd/clockwork": "dev-master"
---
```

### Laravel 4

Once Clockwork is installed, you need to register Laravel service provider, in your `app/config/app.php`:

---
```php
'providers' => array(
...
'Clockwork\Support\Laravel\ClockworkServiceProvider'
)
---
```

To add your controller's runtime to timeline, add following to your base controller's constructor:

---
```php
$this->beforeFilter(function()
{
Event::fire('clockwork.controller.start');
Expand All @@ -38,16 +38,16 @@ $this->afterFilter(function()
{
Event::fire('clockwork.controller.end');
});
---
```

### Slim 2

Once Clockwork is installed, you need to add Slim middleware to your app:

---
```php
$app = new Slim(...);
$app->add(new Clockwork\Support\Slim\ClockworkMiddleware('/requests/storage/path'));
---
```

## TODO

Expand Down

0 comments on commit 5a13b01

Please sign in to comment.