How to overwrite aimeos-core src Classes

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
velo
Posts: 44
Joined: 20 Jun 2016, 06:58

How to overwrite aimeos-core src Classes

Post by velo » 06 Jul 2016, 14:20

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]

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: How to overwrite aimeos-core src Classes

Post by aimeos » 06 Jul 2016, 21:57

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!
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

velo
Posts: 44
Joined: 20 Jun 2016, 06:58

Re: How to overwrite aimeos-core src Classes

Post by velo » 07 Jul 2016, 12:13

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]

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: How to overwrite aimeos-core src Classes

Post by aimeos » 07 Jul 2016, 22:01

Aimeos TYPO3 extension 16.7.0 is planned in two weeks. In the meantime you can add these lines manually to the installed extension.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

velo
Posts: 44
Joined: 20 Jun 2016, 06:58

Re: How to overwrite aimeos-core src Classes

Post by velo » 08 Jul 2016, 09:49

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

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: How to overwrite aimeos-core src Classes

Post by aimeos » 08 Jul 2016, 21:25

If you use composer, you can use the dev-master branch of the GitHub repository directly until the next version is released.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply