Skip to content

Commit

Permalink
docs: fix snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Aug 6, 2018
1 parent b9f9368 commit 72f6de5
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 @@ -403,7 +403,7 @@ $app = new Phalcon\Mvc\Application($di);
$app = new Phalcon\Mvc\Micro($di);

// Wrap the app with middleware and run it
(new PhalconExt\Http\Middlewares([Ajax::class])->wrap($app);
(new PhalconExt\Http\Middlewares([Ajax::class]))->wrap($app);
```

#### Http.Middleware.ApiAuth
Expand Down Expand Up @@ -457,9 +457,9 @@ $di->setShared('config', new \Phalcon\Config([
]);

// Usage:
new PhalconExt\Http\Middlewares([
(new PhalconExt\Http\Middlewares([
PhalconExt\Http\Middleware\ApiAuth::class,
])->wrap(new Phalcon\Mvc\Micro($di));
]))->wrap(new Phalcon\Mvc\Micro($di));
```

#### Http.Middleware.Cache
Expand Down

0 comments on commit 72f6de5

Please sign in to comment.