Skip to content

Instantly share code, notes, and snippets.

View pajcho's full-sized avatar
:octocat:
Make it work, make it right, make it fast

Nikola Pajic pajcho

:octocat:
Make it work, make it right, make it fast
View GitHub Profile
@pajcho
pajcho / Sentry 2 multiple user types in FuelPHP.md
Created July 31, 2013 11:39
Sentry 2 multiple user types in FuelPHP framework

Get multiple Sentry instances in FuelPHP framework

I followed this gist (https://gist.github.com/leabdalla/5999421) to achieve the goal, but because Sentry 2 uses different approach to implement in FuelPHP than Laravel it needed some additional code. So here is a solution for that.

Note that this is not perfect solution, and it could break when we do composer update, because it depends on current Sentry version.

1. Create New Files

You will need to create this file structure: