UniqueIdPersister example

$routes
            );
        };

        $container['uniqueid.generator'] = function D$c) {
            return new UniqueIdGenerator(
                SW_PATH . '/recovery/install/data/uniqueid.txt'
            );
        };

        $container['uniqueid.persister'] = function D$c) {
            return new UniqueIdPersister(
                $c['uniqueid.generator'],
                $c['db']
            );
        };

        $container['shopware.notify'] = function D$c) {
            return new Notification(
                $c['config']['api.endpoint'],
                $c['uniqueid.generator']->getUniqueId(),
                $c['http-client']
            );
        };
Home | Imprint | This part of the site doesn't use cookies.