Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#7488 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',
      ],
   ],
];
#7491 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.