Page 1 of 1

How to overwrite aimeos-core src Classes

Posted: 06 Jul 2016, 14:20
by velo
Hi there,

it's me again. :)
Recently i commited two pull requests for the following file
aimeos/Resources/Libraries/aimeos/aimeos-core/lib/mwlib/src/MW/Media/Image/Standard.php

https://github.com/aimeos/aimeos-core/p ... da799bbef8
https://github.com/aimeos/aimeos-core/p ... 3d056a57ce

We need those changes now and I can't figure out how to overwrite this file.
Any hints are welcome.

Thanks in advance
[pb]

Re: How to overwrite aimeos-core src Classes

Posted: 06 Jul 2016, 21:57
by aimeos
The classes in lib/mwlib are hard to overwrite and for the media ones it currently impossible. You can add the lines in the Aimeos core in the meantime because we will merge your patch in any case.

Note for all others readers: This is an exception because it's a bugfix! Don't changes classes in the core for your project!

Re: How to overwrite aimeos-core src Classes

Posted: 07 Jul 2016, 12:13
by velo
Hey there,

i will answer the error handling question as soon as possible.

Is there a minor release planned for 16.x ? We need these bugfixes.

Thanks and greetings
[pb]

Re: How to overwrite aimeos-core src Classes

Posted: 07 Jul 2016, 22:01
by aimeos
Aimeos TYPO3 extension 16.7.0 is planned in two weeks. In the meantime you can add these lines manually to the installed extension.

Re: How to overwrite aimeos-core src Classes

Posted: 08 Jul 2016, 09:49
by velo
Hi,

unfortunately I can't add it manually because the extension is installed by composer on the deployment process so I have no chance to change the code.
I think about it.

Greetings

Re: How to overwrite aimeos-core src Classes

Posted: 08 Jul 2016, 21:25
by aimeos
If you use composer, you can use the dev-master branch of the GitHub repository directly until the next version is released.