RebelCode/rcmod-wp-bookings-cqrs

View on GitHub
module.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

use Psr\Container\ContainerInterface;
use RebelCode\Storage\Resource\WordPress\Module\WpBookingsCqrsModule;

define('RC_WP_BOOKINGS_CQRS_MODULE_KEY', 'wp_bookings_cqrs');
define('RC_WP_BOOKINGS_CQRS_MODULE_DIR', __DIR__);
define('RC_WP_BOOKINGS_CQRS_MODULE_CONFIG_DIR', RC_WP_BOOKINGS_CQRS_MODULE_DIR . '/config');
define('RC_WP_BOOKINGS_CQRS_MODULE_CONFIG_FILE', RC_WP_BOOKINGS_CQRS_MODULE_CONFIG_DIR . '/config.php');
define('RC_WP_BOOKINGS_CQRS_MIGRATIONS_DIR', RC_WP_BOOKINGS_CQRS_MODULE_DIR . '/migrations');

return function (ContainerInterface $c) {
    return new WpBookingsCqrsModule(
        RC_WP_BOOKINGS_CQRS_MODULE_KEY,
        ['wp_cqrs'],
        $c->get('config_factory'),
        $c->get('container_factory'),
        $c->get('composite_container_factory'),
        $c->get('event_manager'),
        $c->get('event_factory')
    );
};