Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,4 @@ fabric.properties

.php_cs.cache
phpunit.xml
node_modules
17 changes: 13 additions & 4 deletions bin/upward
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@

declare(strict_types=1);

require_once __DIR__ . '/../vendor/autoload.php';

use Zend\Http\PhpEnvironment\Request;

$context = Magento\Upward\Context::fromRequest(new Request());
try {
require_once __DIR__ . '/../vendor/autoload.php';
} catch (\Exception $e) {
echo 'Autoload error: ' . $e->getMessage();
exit(1);
}

$upwardConfig = getenv('UPWARD_PHP_UPWARD_PATH');
if (!$upwardConfig) {
exit(1);
}

var_dump($context);
$controller = new Magento\Upward\Controller(new Request(), $upwardConfig);
echo $controller();
Loading