Dumplie\Customer\Application\Extension\CoreExtension::mapCommands PHP Method

mapCommands() protected method

protected mapCommands ( Dumplie\SharedKernel\Application\ServiceLocator $serviceLocator )
$serviceLocator Dumplie\SharedKernel\Application\ServiceLocator
    protected function mapCommands(ServiceLocator $serviceLocator)
    {
        $serviceLocator->get(Services::KERNEL_COMMAND_HANDLER_MAP)->register(CreateCart::class, $serviceLocator->get(CustomerServices::CUSTOMER_CREATE_CART_HANDLER));
        $serviceLocator->get(Services::KERNEL_COMMAND_HANDLER_MAP)->register(AddToCart::class, $serviceLocator->get(CustomerServices::CUSTOMER_ADD_TO_CART_HANDLER));
        $serviceLocator->get(Services::KERNEL_COMMAND_HANDLER_MAP)->register(RemoveFromCart::class, $serviceLocator->get(CustomerServices::CUSTOMER_REMOVE_FROM_CART_HANDLER));
    }