This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » exclude directories from autoload array
expandshrink

exclude directories from autoload array

exclude directories from autoload array

Tuesday 05 October 2010 3:32:26 pm - 5 replies

Hi @ all,

I would like to include openx in ezpublish 4.4.
now I have the following directory structure:

extension
-xnetadserver
--design
--settings
--src
---openx

openx produces many errors in the autoload array. how can I exclude the src/openx directories from autoload array?

Thanks for your help...

Michael

Modified on Tuesday 05 October 2010 4:00:44 pm by Michael L.

Tuesday 05 October 2010 3:51:07 pm

Hi Michael,

openx produces many errors in the autoload array. how can I exclude the src/openx directories from autoload array?

what kind of error do you have ?

Tuesday 05 October 2010 3:57:32 pm

Hi Damien,

all errors look like this:

Problems detected during autoload generation:

  • Class ZoneAdObjectHandler in file extension/xnetadserver/src/openx/etc/changes/migration_tables_core_327.php is already defined in:
    extension/xnetadserver/src/openx/etc/changes/migration_tables_core_127.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class ZoneBannerHandler in file extension/xnetadserver/src/openx/etc/changes/migration_tables_core_327.php is already defined in:
    extension/xnetadserver/src/openx/etc/changes/migration_tables_core_127.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class ZoneCampaignHandler in file extension/xnetadserver/src/openx/etc/changes/migration_tables_core_327.php is already defined in:
    extension/xnetadserver/src/openx/etc/changes/migration_tables_core_127.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class Services_JSON_Error in file extension/xnetadserver/src/openx/lib/JSON/JSON.php is already defined in:
    extension/xnetadserver/src/openx/lib/JSON/JSON.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class JSMin in file extension/xnetadserver/src/openx/lib/minify/JSMin.php is already defined in:
    extension/ezjscore/lib/jsmin.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class JSMinException in file extension/xnetadserver/src/openx/lib/minify/JSMin.php is already defined in:
    extension/ezjscore/lib/jsmin.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class OLE in file extension/xnetadserver/src/openx/lib/pear/OLE/OLE.php is already defined in:
    extension/xnetadserver/src/openx/lib/pear/OLE.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.
  • Class Pager in file extension/xnetadserver/src/openx/lib/wact/db/interfaces/pager.php is already defined in:
    extension/xnetadserver/src/openx/lib/pear/Pager.php (var/autoload/ezp_extension.php)
    This class was not added to the autoload array.

.

.

.

and so on...

Tuesday 05 October 2010 4:54:28 pm

The script bin/php/ezpgenerateautoloads.php have a option to exclude some directories.

You can use the option --exclude= to exclude some things

Example :

php bin/php/ezpgenerateautoloads.php -e --exclude=extension_path

Wednesday 06 October 2010 4:24:23 pm

Hi Frédéric,

this works fine! But it is possible to write a phpfile to manage this?

e.g. in the eztemplateautoload.php file i can define the $eZTemplateOperatorArray which are automatically loaded into the system.

is a similar solution for directories inside the extensions available?

Friday 08 October 2010 11:18:29 am

Hi

the directive --exclude can take all directory path you want like extension/xnetadserver/src/openx.

You can separate differents directories with a ,

php bin/php/ezpgnerateautoloads.php --exclude=first_directory,subdirectory_of_an_extension

Regards

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from