⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
shopware
/
vendor
/
shopware
/
core
/
System
/
Edit File: System.php
<?php declare(strict_types=1); namespace Shopware\Core\System; use Shopware\Core\Framework\Bundle; use Shopware\Core\Framework\Log\Package; use Shopware\Core\System\CustomEntity\CustomEntityRegistrar; use Shopware\Core\System\DependencyInjection\CompilerPass\RedisNumberRangeIncrementerCompilerPass; use Shopware\Core\System\DependencyInjection\CompilerPass\SalesChannelEntityCompilerPass; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; /** * @internal */ #[Package('core')] class System extends Bundle { public function getTemplatePriority(): int { return -1; } /** * {@inheritdoc} */ public function build(ContainerBuilder $container): void { parent::build($container); $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/DependencyInjection/')); $loader->load('sales_channel.xml'); $loader->load('country.xml'); $loader->load('currency.xml'); $loader->load('custom_entity.xml'); $loader->load('locale.xml'); $loader->load('snippet.xml'); $loader->load('salutation.xml'); $loader->load('tax.xml'); $loader->load('unit.xml'); $loader->load('user.xml'); $loader->load('integration.xml'); $loader->load('state_machine.xml'); $loader->load('configuration.xml'); $loader->load('number_range.xml'); $loader->load('tag.xml'); $container->addCompilerPass(new SalesChannelEntityCompilerPass()); $container->addCompilerPass(new RedisNumberRangeIncrementerCompilerPass()); } public function boot(): void { parent::boot(); $this->container->get(CustomEntityRegistrar::class)->register(); } }
Simpan