Skip to content

Commit

Permalink
Update Composer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shochdoerfer committed Nov 12, 2022
1 parent d53e8e3 commit 7b5ca5b
Show file tree
Hide file tree
Showing 565 changed files with 235,367 additions and 2 deletions.
3 changes: 1 addition & 2 deletions magento/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"magento/module-catalog": "^104.0",
"magento/module-inventory-api": "^1.2",
"magento/product-community-edition": "2.4.5",
"swissup/module-search-mysql-legacy": "^1.1",
"yireo/magento2-replace-all": "^4.2"
"swissup/module-search-mysql-legacy": "^1.1"
},
"autoload": {
"exclude-from-classmap": [
Expand Down
5 changes: 5 additions & 0 deletions magento/setup/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Options -Indexes

<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
8 changes: 8 additions & 0 deletions magento/setup/config/.htaccess
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>

34 changes: 34 additions & 0 deletions magento/setup/config/application.config.php
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,
],
]
];
22 changes: 22 additions & 0 deletions magento/setup/config/autoload/global.php
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
]
]
]
)
];
43 changes: 43 additions & 0 deletions magento/setup/config/di.config.php
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'
]
]
],
],
],
],
];
16 changes: 16 additions & 0 deletions magento/setup/config/module.config.php
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',
],
]
];
15 changes: 15 additions & 0 deletions magento/setup/config/modules.config.php
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',
];
52 changes: 52 additions & 0 deletions magento/setup/index.php
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;
8 changes: 8 additions & 0 deletions magento/setup/performance-toolkit/.htaccess
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>

Loading

0 comments on commit 7b5ca5b

Please sign in to comment.