mako-framework / framework

Mako framework.
https://makoframework.com
BSD 3-Clause "New" or "Revised" License
243 stars 38 forks source link

Class mako\auth\gatekeeper does not exist #146

Closed ConsoleTVs closed 9 years ago

ConsoleTVs commented 9 years ago

http://puu.sh/gdGWr/f8a9d8b9e1.png

Do you know anything that can cause this?

Gatekeeper class is there... (http://puu.sh/gdH0G/402d695606.png)

Thanks

letr0n commented 9 years ago

You must make sure to write Gatekeeper with a capital G in your code. It fails to load because you're on a case-sensitive filesystem.

ConsoleTVs commented 9 years ago

http://paste.makoframework.com/s7w

sure it's not that....

ConsoleTVs commented 9 years ago

News:

Found that the problem may be in the filter, corrected capital letter, and have the following error:

http://puu.sh/gdMVS/64a0c01c09.png

The filters.php is this: http://paste.makoframework.com/s7x

letr0n commented 9 years ago

When you're not injecting your dependecies and use the container aware trait then you'll have to use lower case.

You can see a complete list of all typehints and keys here http://makoframework.com/docs/4.4/getting-started:dependency-injection#services :)

ConsoleTVs commented 9 years ago

Thanks, working now