Dumplie\Inventory\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(CreateProduct::class, $serviceLocator->get(InventoryServices::INVENTORY_COMMAND_CREATE_PRODUCT_HANDLER));
    }