[TYPO3-english] Overload ext_autoload value

Peter Ruijter peter.ruijter at gmail.com
Mon Aug 22 16:44:19 CEST 2011

Hi Jigal,

You're right, I tried to overwrite a file-reference inside the
ext_autoload.php of the Solr extension.

I've created a separate extension to provide proxy facilities to the Solr
extension. Inside my own extension I've created an ext_autoload.php with the
following content:

$extensionPath = t3lib_extMgm::extPath('my_solr');
return array(
 // SolrPhpClient
'apache_solr_service' => $extensionPath . 'lib/Service.php',

"my_solr" Is installed and the cache is cleared, but my Service.php isn't

The autoload function of Typo3 is a really nice and easy way to include
classes of an extension, but if this means that it isn't possible to
overwrite non Typo3 classes I would advise the T3 Solr team to not include
the Apache classes this way. I will drop this same issue into the Solr list,
hoping they have a solution.

For so far thanks for your reactions. If there is someone else who is
heaving a brilliant solution to this problem, I would appreciate it if you
share it with the list.

Best regards,

Peter Ruijter
*Peter Industries*

On Mon, Aug 22, 2011 at 1:14 PM, Jigal van Hemert <jigal at xs4all.nl> wrote:

> Hi,
> On 22-8-2011 11:44, Christian Kuhn wrote:
>> On 08/22/2011 10:54 AM, Peter Ruijter wrote:
>>> I want to overload a file from the SolrPhpClient library inside the
>>> the Solr extension.
>> Only EXT:/ext_autoload.php files are loaded by core autoloader, no sub
>> pathes. And classes must stick to the naming scheme (eg. begin with
>> tx_'extensionname'_).
> In the ext_autoload.php of Solr the libraries Peter refers to are loaded
> like:
>        'apache_solr_httptransport_**abstract' => $extensionPath .
> 'lib/SolrPhpClient/Apache/**Solr/HttpTransport/Abstract.**php',
>        'apache_solr_httptransport_**curl' => $extensionPath .
> 'lib/SolrPhpClient/Apache/**Solr/HttpTransport/Curl.php',
> [...]
> These two indeed contain the classes Apache_Solr_HttpTransport_**Abstract
> and Apache_Solr_HttpTransport_**Curl.
> I guess Peter tried to overwrite one of these entries with the path to his
> own version of the same class.
> --
> Kind regards / met vriendelijke groet,
> Jigal van Hemert.
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>

More information about the TYPO3-english mailing list