<?php

defined( 'ABSPATH' ) || exit;

use Vendtics\App\Providers\ShortCodeServiceProvider;
use Vendtics\App\Http\Middleware\EnsureIsUserAdmin;
use Vendtics\App\Providers\Admin\MenuServiceProvider;
use Vendtics\App\Providers\WooCommerceServiceProvider;
use Vendtics\App\Providers\JobsServiceProvider;
use Vendtics\WpMVC\Helpers\Helpers;

return [
    'version'                 => Helpers::get_plugin_version( 'vendtics' ),

    'rest_api'                => [
        'namespace' => 'vendtics',
        'versions'  => []
    ],

    'ajax_api'                => [
        'namespace' => 'vendtics',
        'versions'  => []
    ],

    'providers'               => [
        WooCommerceServiceProvider::class,
        JobsServiceProvider::class,
        ShortCodeServiceProvider::class
    ],

    'admin_providers'         => [
        MenuServiceProvider::class,
    ],

    'middleware'              => [
        'admin' => EnsureIsUserAdmin::class
    ],

    'migration_db_option_key' => 'vendtics_migrations',

    'migrations'              => []
];