Page 1 of 1

How can i register JsonAdm Class from my extension?

Posted: 11 Jan 2019, 09:54
by tenkraD
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',
		],
	],
];

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

Posted: 11 Jan 2019, 10:44
by aimeos
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.

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

Posted: 11 Jan 2019, 10:59
by tenkraD
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