Upgrade from 2021.10 to 2022.07 with custom extension
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Upgrade from 2021.10 to 2022.07 with custom extension
Hi,
i'm trying to upgrade Aimeos from 2021.10 to 2022.07 version.
I have a custom extensions under ext folder with some overrided classes with different names.
The 2022.07 version doesn't find the classes of the submanagers because of a wrong namespace.
This is the config/mshop.php file of the extension:
For example I have this error:
It is changed something in the config array?
Thanks.
i'm trying to upgrade Aimeos from 2021.10 to 2022.07 version.
I have a custom extensions under ext folder with some overrided classes with different names.
The 2022.07 version doesn't find the classes of the submanagers because of a wrong namespace.
This is the config/mshop.php file of the extension:
Code: Select all
<?php
return [
'coupon' => [
'manager' => [
'name' => 'CouponVG7',
'code' => [
'name' => 'CouponCodeVG7',
'decorators' => [
'local' => ['CouponCodeCustomerId']
],
]
]
],
'customer' => [
'manager' => [
'name' => 'CustomerVG7',
'decorators' => [
'local' => ['UsersIdPrint']
],
'address' => [
'name' => 'AddressVG7'
]
]
],
'media' => [
'manager' => [
'name' => 'MediaVG7',
'decorators' => [
'local' => ['MediaIdPrint']
],
]
],
'order' => [
'manager' => [
'name' => 'OrderVG7',
'decorators' => [
'local' => ['OrderIdPrint']
],
'base' => [
'name' => 'OrderBaseVG7',
'address' => [
'name' => 'OrderBaseAddressVG7',
'decorators' => [
'local' => ['OrderBaseAddressAddFields']
],
],
'product' => [
'name' => 'OrderBaseProductVG7',
'decorators' => [
'local' => ['OrderBaseProductIdPrint']
],
],
'service' => [
'name' => 'OrderBaseServiceVG7'
],
]
]
],
'product' => [
'manager' => [
'name' => 'ProductVG7',
'decorators' => [
'local' => ['ProductIdPrint', 'ProductCodePrint']
],
]
],
'service' => [
'manager' => [
'name' => 'ServiceVG7',
'decorators' => [
'local' => ['ServiceIdPrint']
],
]
],
];
but the correct namespace for this class isClass "\Aimeos\MShop\Customer\Manager\AddressVG7" not found
.\Aimeos\MShop\Customer\Manager\Address\AddressVG7
It is changed something in the config array?
Thanks.
Re: Upgrade from 2021.10 to 2022.07 with custom extension
The configuration didn't change but there are no manager factories any more and all managers are created by:
Can you check if there's something fishy here?
https://github.com/aimeos/aimeos-core/b ... hp#L56-L88
Code: Select all
\Aimeos\MShop::create( $this->context(), '<domain>' );
https://github.com/aimeos/aimeos-core/b ... hp#L56-L88
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Upgrade from 2021.10 to 2022.07 with custom extension
I opened a pull request: https://github.com/aimeos/aimeos-core/pull/297
I used it locally for some days and seem to be ok.
I used it locally for some days and seem to be ok.