<?php

if (!defined('ABSPATH')) {
    exit;
}

/**
 * Application bindings
 *
 * @param Licenzo\Framework\Foundation\Application $app
 */
return function (\Licenzo\Framework\Foundation\Application $app) {

    $app->singleton(\Licenzo\Framework\Foundation\WPEngine::class, function ($app) {
        return new \Licenzo\Framework\Foundation\WPEngine($app);
    });

    $app->alias(\Licenzo\Framework\Foundation\WPEngine::class, 'wp.engine');

    $app->singleton(\Licenzo\Framework\Database\WPDBConnection::class, function ($app) {
        return new \Licenzo\Framework\Database\WPDBConnection($app);
    });

};
