Skip to content

Commit

Permalink
Incorrectly used "custom cache driver"
Browse files Browse the repository at this point in the history
Used "custom cache driver" instead of "custom session driver/extension" in the "Writing The Session Extension" section.
  • Loading branch information
ChristianSchoene committed Dec 3, 2014
1 parent 38bb5bf commit 18622cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extending.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Session extensions need to be registered differently than other extensions like

### Writing The Session Extension

Note that our custom cache driver should implement the `SessionHandlerInterface`. This interface is included in the PHP 5.4+ core. If you are using PHP 5.3, the interface will be defined for you by Laravel so you have forward-compatibility. This interface contains just a few simple methods we need to implement. A stubbed MongoDB implementation would look something like this:
Note that our custom session driver should implement the `SessionHandlerInterface`. This interface is included in the PHP 5.4+ core. If you are using PHP 5.3, the interface will be defined for you by Laravel so you have forward-compatibility. This interface contains just a few simple methods we need to implement. A stubbed MongoDB implementation would look something like this:

class MongoHandler implements SessionHandlerInterface {

Expand Down

0 comments on commit 18622cf

Please sign in to comment.