This oxid module is made for Oxid 6.2+. For older oxid versions you must install
makaira/connect-oxid-compat
with PHP composer.
Touch all
and Cleanup
are console commands now. They can be called like all oxid
console commands with ./vendor/bin/oe-console
:
./vendor/bin/oe-console makaira:touch-all
./vendor/bin/oe-console makaira:cleanup
- Extent Makaira\Connect\Modifier
- Add modifier as service with oxid dependency injection
- Modifiers are injected by events. You need to tag the service in your
services.yaml
like this:
your_custom_modifier:
class: Your\Custom\Mofifier\FoobarModifier
public: true
arguments:
$database: '@Makaira\Connect\Database\DoctrineDatabase' # example constructor argument
tags:
- { name: 'kernel.event_listener', event: 'makaira.importer.modifier.product', priority: 1000, method: addModifier } # register as product modifier
- { name: 'kernel.event_listener', event: 'makaira.importer.modifier.variant', priority: 1000, method: addModifier } # register as variant modifier
- { name: 'kernel.event_listener', event: 'makaira.importer.modifier.category', priority: 1000, method: addModifier } # register as category modifier
- { name: 'kernel.event_listener', event: 'makaira.importer.modifier.manufacturer', priority: 1000, method: addModifier } # register as manufacturer modifier
-
if have oxid < 6.2
- use
makaira/connect-oxid-compat
to get a compatibility layer.
- use
-
you can force rebuilding the cached service container by deleting
MarmaladeConnectCompatServiceContainer.php
intmp
`rm -rf source/tmp/MarmaladeConnectCompatServiceContainer.php