Friday 11 February 2011 3:27:19 am
Hi I try to override kernel datatypes to make a CAS authentication but it's doesn't work. First I have create an extension with this arborescence :
ezCAS -> settings -> content.ini.append.php -> kernel -> classes -> datatypes -> ezuser -> ezuser.php My file "content.ini.append.php" contains this lines :
"
[DataTypeSettings]
RepositoryDirectories [] RepositoryDirectories []=extension/ezCAS/kernel/classes/datatypes
"
Next I have modify the "config.php-RECOMMENDED" as this :
"
/*
KERNEL OVERRIDES
----------------
This setting controls if eZ Publish's autoload system should allow, and
load classes, which override kernel classes from extensions.
*/ define( 'EZP_AUTOLOAD_ALLOW_KERNEL_OVERRIDE', true );
"
(I have uncomment and replace "false" with "true")
To finish I have execute this commands :
php bin/php/ezpgenerateautoloads.php -o php bin/php/ezpgenerateautoloads.php But I have this error message :
"
Warning:
Class eZUser in file extension/ezCAS/kernel/classes/datatypes/ezuzerCAS/ezuser.php is already defined in:
kernel/classes/datatypes/ezuser/ezuser.php (autoload/ezp_kernel.php) This class was not added to the autoload array.
"
What's wrong ? I have used this topic http://share.ez.no/forums/developer/override-kernel-classes eZ Version : 4.3 Thanks for your help.
|