Created
August 14, 2017 06:14
-
-
Save janbuecker/5cefd7705978d940a16996b031b218bb to your computer and use it in GitHub Desktop.
Using Shopware outside of the project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/../autoload.php'; | |
$kernel = new \Shopware\Kernel('production', false); | |
$kernel->boot(); | |
$kernel->getContainer(); | |
// access the container | |
$kernel->getContainer()->get('...'); | |
// use Shopware Globals, e.g. container | |
Shopware()->Container()->get('...'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment