Welcome Guest, Not a member yet? Register   Sign In
Using phpCas in CI4 (Composer install)
#3

(This post was last modified: 03-26-2024, 07:03 AM by Zeff.)

(03-26-2024, 05:36 AM)kenjis Wrote:
(03-26-2024, 02:41 AM)Zeff Wrote: I'm rather new to Composer, but I believe Composer autoloading is active by default in CI4?

Yes.

It seems the phpCAS class is located in the global namespace.
https://github.com/apereo/phpCAS/blob/ma...simple.php

Try:
PHP Code:
use phpCAS

And PHP classnames are case-sensitive after all. So be careful for the case.
Dear kenjis,

Thanks for your reply, but I'm now get 'Class "phpCAS" not found'...
If I define: use apereo\phpCAS, I get 'Class "apereo\phpCAS" not found'.
When using use apereo\CAS, the error is: 'Class "App\Libraries\phpCAS" not found'

I don't get it...  Sad

Cheers,

Zeff
Reply


Messages In This Thread
Using phpCas in CI4 (Composer install) - by Zeff - 03-26-2024, 02:41 AM
RE: Using phpCas in CI4 (Composer install) - by Zeff - 03-26-2024, 07:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB