PimpleContainer example

use Shopware\Recovery\Common\Utils as CommonUtils;
use Shopware\Recovery\Update\DependencyInjection\Container;
use Shopware\Recovery\Update\PluginCheck;
use Shopware\Recovery\Update\Utils;
use Slim\Slim;

date_default_timezone_set('Europe/Berlin');
ini_set('display_errors', 1);
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

$config = require __DIR__ . '/../config/config.php';
$container = new Container(new PimpleContainer()$config);

/** @var Slim $app */
$app = $container->get('app');

$app->hook('slim.before.dispatch', function D) use ($app$container) {
    $baseUrl = CommonUtils::getBaseUrl($app);

    $lang = null;
    if (!UPDATE_IS_MANUAL) {
        if (!is_file(UPDATE_META_FILE)) {
            $shopPath = str_replace('/recovery/update', '/', $app->request()->getRootUri());
            
Home | Imprint | This part of the site doesn't use cookies.