-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d53e8e3
commit 7b5ca5b
Showing
565 changed files
with
235,367 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Options -Indexes | ||
|
||
<IfModule mod_rewrite.c> | ||
RewriteEngine Off | ||
</IfModule> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<IfVersion < 2.4> | ||
order allow,deny | ||
deny from all | ||
</IfVersion> | ||
<IfVersion >= 2.4> | ||
Require all denied | ||
</IfVersion> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
use Magento\Setup\Di\MagentoDiFactory; | ||
use Magento\Setup\Mvc\Bootstrap\InitParamListener; | ||
|
||
return [ | ||
'modules' => require __DIR__ . '/modules.config.php', | ||
'module_listener_options' => [ | ||
'module_paths' => [ | ||
__DIR__ . '/../src', | ||
], | ||
'config_glob_paths' => [ | ||
__DIR__ . '/autoload/{,*.}{global,local}.php', | ||
], | ||
], | ||
'listeners' => [ | ||
InitParamListener::class | ||
], | ||
'service_manager' => [ | ||
'factories' => [ | ||
InitParamListener::BOOTSTRAP_PARAM => InitParamListener::class, | ||
\Magento\Framework\App\MaintenanceMode::class => MagentoDiFactory::class, | ||
\Magento\Setup\Model\ConfigGenerator::class => MagentoDiFactory::class, | ||
\Magento\Indexer\Console\Command\IndexerReindexCommand::class => MagentoDiFactory::class, | ||
\Symfony\Component\Console\Helper\TableFactory::class => MagentoDiFactory::class, | ||
\Magento\Deploy\Console\InputValidator::class => MagentoDiFactory::class, | ||
\Magento\Framework\App\State::class => MagentoDiFactory::class, | ||
], | ||
] | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
use Magento\Framework\App\Bootstrap; | ||
use Magento\Framework\App\Filesystem\DirectoryList; | ||
use Magento\Setup\Mvc\Bootstrap\InitParamListener; | ||
|
||
return [ | ||
InitParamListener::BOOTSTRAP_PARAM => array_merge( | ||
$_SERVER, | ||
[ | ||
Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS => [ | ||
DirectoryList::ROOT => [ | ||
DirectoryList::PATH => BP | ||
] | ||
] | ||
] | ||
) | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
use Laminas\EventManager\EventManagerInterface; | ||
use Laminas\ServiceManager\ServiceLocatorInterface; | ||
use Laminas\ServiceManager\ServiceManager; | ||
use Magento\Framework\Component\ComponentRegistrar; | ||
use Magento\Framework\Component\ComponentRegistrarInterface; | ||
use Magento\Framework\DB\Logger\Quiet; | ||
use Magento\Framework\DB\LoggerInterface; | ||
use Magento\Framework\Filesystem\DriverInterface; | ||
use Magento\Framework\Locale\Config; | ||
use Magento\Framework\Locale\ConfigInterface; | ||
use Magento\Framework\Setup\Declaration\Schema\SchemaConfig; | ||
|
||
return [ | ||
'dependencies' => [ | ||
'auto' => [ | ||
'preferences' => [ | ||
EventManagerInterface::class => 'EventManager', | ||
ServiceLocatorInterface::class => ServiceManager::class, | ||
LoggerInterface::class => Quiet::class, | ||
ConfigInterface::class => Config::class, | ||
DriverInterface::class => \Magento\Framework\Filesystem\Driver\File::class, | ||
ComponentRegistrarInterface::class => ComponentRegistrar::class, | ||
], | ||
'types' => [ | ||
SchemaConfig::class => [ | ||
'parameters' => [ | ||
'connectionScopes' => [ | ||
'default', | ||
'checkout', | ||
'sales' | ||
] | ||
] | ||
], | ||
], | ||
], | ||
], | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
return [ | ||
'view_manager' => [ | ||
'display_not_found_reason' => false, | ||
'display_exceptions' => false, | ||
'doctype' => 'HTML5', | ||
'template_path_stack' => [ | ||
'setup' => __DIR__ . '/../view', | ||
], | ||
] | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
/** | ||
* List of enabled modules for this application. | ||
* | ||
* This should be an array of module namespaces used in the application. | ||
*/ | ||
return [ | ||
'Magento\Setup', | ||
'Laminas\Di', | ||
'Laminas\Router', | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
use Laminas\Http\PhpEnvironment\Request; | ||
use Magento\Framework\App\Bootstrap; | ||
use Magento\Framework\App\ProductMetadata; | ||
use Magento\Setup\Model\License; | ||
|
||
if (PHP_SAPI == 'cli') { | ||
echo "You cannot run this from the command line." . PHP_EOL . | ||
"Run \"php bin/magento\" instead." . PHP_EOL; | ||
exit(1); | ||
} | ||
try { | ||
require __DIR__ . '/../app/bootstrap.php'; | ||
} catch (\Exception $e) { | ||
echo <<<HTML | ||
<div style="font:12px/1.35em arial, helvetica, sans-serif;"> | ||
<div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;"> | ||
<h3 style="margin:0;font-size:1.7em;font-weight:normal;text-transform:none;text-align:left;color:#2f2f2f;"> | ||
Autoload error</h3> | ||
</div> | ||
<p>{$e->getMessage()}</p> | ||
</div> | ||
HTML; | ||
exit(1); | ||
} | ||
|
||
// For Setup Wizard we are using our customized error handler | ||
$handler = new \Magento\Framework\App\ErrorHandler(); | ||
set_error_handler([$handler, 'handler']); | ||
|
||
// Render Setup Wizard landing page | ||
$objectManager = Bootstrap::create(BP, $_SERVER)->getObjectManager(); | ||
|
||
$licenseClass = $objectManager->create(License::class); | ||
$metaClass = $objectManager->create(ProductMetadata::class); | ||
/** @var License $license */ | ||
$license = $licenseClass->getContents(); | ||
/** @var ProductMetadata $version */ | ||
$version = $metaClass->getVersion(); | ||
|
||
$request = new Request(); | ||
$basePath = $request->getBasePath(); | ||
|
||
ob_start(); | ||
require_once __DIR__ . '/view/magento/setup/index.phtml'; | ||
$html = ob_get_clean(); | ||
echo $html; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<IfVersion < 2.4> | ||
order allow,deny | ||
deny from all | ||
</IfVersion> | ||
<IfVersion >= 2.4> | ||
Require all denied | ||
</IfVersion> | ||
|
Oops, something went wrong.