Skip to content

Commit

Permalink
Added highlighting for pure PHP blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tormjens authored Sep 14, 2020
1 parent 1e74337 commit 6823772
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ To listen to your hooks, you attach listeners. These are best added to your `App

For example if you wanted to hook in to the above hook, you could do:

```
```php
Eventy::addAction('my.hook', function($user) {
if ($user->is_awesome) {
$this->doSomethingAwesome($user);
Expand Down Expand Up @@ -195,7 +195,7 @@ Here's an example of an action being added to the a blade template for extensibi
This would allow for your plugins/controllers to hook into each blog post footer.

In this example a share link is added.
```
```php
use TorMorten\Eventy\Facades\Events as Eventy;
class SharePostsController
{
Expand All @@ -210,7 +210,7 @@ class SharePostsController
```

In this example a comment count is added.
```
```php
use TorMorten\Eventy\Facades\Events as Eventy;
class CommentsPostsController
{
Expand Down

0 comments on commit 6823772

Please sign in to comment.