How can i register JsonAdm Class from my extension?

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!
tenkraD
Advanced
Posts: 110
Joined: 25 Jul 2017, 08:38

How can i register JsonAdm Class from my extension?

Post by tenkraD » 11 Jan 2019, 09:54

Im trying to register a rewritten class in the jsonadm/customer.
How can i do this in the config?
Normally i could set a name => "myclass" but this is not working here.
So i tried it with the decorator but i failed also with that.
I know the class is working cause if i replace the standard.php in aimeos ext it is working.
But i wanna be able to update aimeos without problems.

File: typo3conf/ext/myext/Resources/Private/Extensions/myext/config/admin.php

Code: Select all

<?php

return [
	'jqadm' => [ ],
	'jsonadm' => [
		'customer' => [
				'decorators' => [
					'global' => ['myclassname'],
				],
				'name' => 'myclassname',
		],
	],
];

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

Re: How can i register JsonAdm Class from my extension?

Post by aimeos » 11 Jan 2019, 10:44

This should work if placed in "./config/admin.php":

Code: Select all

<?php

return [
   'jsonadm' => [
      'customer' => [
            'name' => 'Myclassname',
      ],
   ],
];
The "depend" section in the "manifest.php" of your extension normally lists "ai-admin-jsonadm" too.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

tenkraD
Advanced
Posts: 110
Joined: 25 Jul 2017, 08:38

Re: How can i register JsonAdm Class from my extension?

Post by tenkraD » 11 Jan 2019, 10:59

Thank you admin, it works with name => myclass.
I dont know why it wasnt working before i just reuploaded the file again to webserver.

Maybe on uploading to webserver something went wrong.

Thanks

Post Reply