Skip to content

Commit

Permalink
[UiTranslations] Add test application
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Sep 20, 2024
1 parent bb7835e commit b8eeac8
Show file tree
Hide file tree
Showing 235 changed files with 22,162 additions and 3 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"App\\": "app/",
"MainTests\\Sylius\\": "tests/",
"TestApplication\\Sylius\\TwigHooks\\": "src/TwigHooks/tests/Functional/.application/src/",
"TestApplication\\Sylius\\UiTranslations\\": "src/UiTranslations/tests/Functional/.application/src/",
"Tests\\Sylius\\AdminUi\\": "src/AdminUi/tests/",
"Tests\\Sylius\\TwigExtra\\": "src/TwigExtra/tests/",
"Tests\\Sylius\\TwigHooks\\": "src/TwigHooks/tests/"
Expand Down
2 changes: 1 addition & 1 deletion config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Sylius\TwigHooks\TwigHooksBundle::class => ['all' => true],
Sylius\TwigExtra\Symfony\SyliusTwigExtraBundle::class => ['all' => true],
Sylius\AdminUi\Symfony\SyliusAdminUiBundle::class => ['all' => true],
Sylius\UiTranslations\Symfony\UiTranslationsBundle::class => ['all' => true],
Sylius\UiTranslations\Symfony\SyliusUiTranslationsBundle::class => ['all' => true],
Sylius\BootstrapAdminUi\Symfony\SyliusBootstrapAdminUiBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace ContainerTd9OaK2;

class RequestPayloadValueResolverGhostE1d47aa extends \Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestPayloadValueResolver implements \Symfony\Component\VarExporter\LazyObjectInterface
{
use \Symfony\Component\VarExporter\LazyGhostTrait;

private const LAZY_OBJECT_PROPERTY_SCOPES = [
"\0".parent::class."\0".'serializer' => [parent::class, 'serializer', parent::class],
"\0".parent::class."\0".'translator' => [parent::class, 'translator', parent::class],
"\0".parent::class."\0".'validator' => [parent::class, 'validator', parent::class],
'serializer' => [parent::class, 'serializer', parent::class],
'translator' => [parent::class, 'translator', parent::class],
'validator' => [parent::class, 'validator', parent::class],
];
}

// Help opcache.preload discover always-needed symbols
class_exists(\Symfony\Component\VarExporter\Internal\Hydrator::class);
class_exists(\Symfony\Component\VarExporter\Internal\LazyObjectRegistry::class);
class_exists(\Symfony\Component\VarExporter\Internal\LazyObjectState::class);

if (!\class_exists('RequestPayloadValueResolverGhostE1d47aa', false)) {
\class_alias(__NAMESPACE__.'\\RequestPayloadValueResolverGhostE1d47aa', 'RequestPayloadValueResolverGhostE1d47aa', false);
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

namespace ContainerTd9OaK2;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getCacheWarmerService extends TestApplication_Sylius_AdminUi_KernelDevDebugContainer
{
/**
* Gets the public 'cache_warmer' shared service.
*
* @return \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate
*/
public static function do($container, $lazyLoad = true)
{
return $container->services['cache_warmer'] = new \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate(new RewindableGenerator(function () use ($container) {
yield 0 => ($container->privates['config_builder.warmer'] ?? $container->load('getConfigBuilder_WarmerService'));
yield 1 => ($container->privates['router.cache_warmer'] ?? $container->load('getRouter_CacheWarmerService'));
yield 2 => ($container->privates['twig.template_cache_warmer'] ?? $container->load('getTwig_TemplateCacheWarmerService'));
}, 3), true, ($container->targetDir.''.'/TestApplication_Sylius_AdminUi_KernelDevDebugContainerDeprecations.log'));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace ContainerTd9OaK2;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getCache_AppClearerService extends TestApplication_Sylius_AdminUi_KernelDevDebugContainer
{
/**
* Gets the public 'cache.app_clearer' shared service.
*
* @return \Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer
*/
public static function do($container, $lazyLoad = true)
{
return $container->services['cache.app_clearer'] = new \Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer(['cache.app' => ($container->services['cache.app'] ?? $container->load('getCache_AppService'))]);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

namespace ContainerTd9OaK2;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getCache_AppService extends TestApplication_Sylius_AdminUi_KernelDevDebugContainer
{
/**
* Gets the public 'cache.app' shared service.
*
* @return \Symfony\Component\Cache\Adapter\FilesystemAdapter
*/
public static function do($container, $lazyLoad = true)
{
$container->services['cache.app'] = $instance = new \Symfony\Component\Cache\Adapter\FilesystemAdapter('ofTigY-hXf', 0, ($container->targetDir.''.'/pools/app'), new \Symfony\Component\Cache\Marshaller\DefaultMarshaller(NULL, true));

$instance->setLogger(($container->privates['logger'] ?? self::getLoggerService($container)));

return $instance;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace ContainerTd9OaK2;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getCache_App_TaggableService extends TestApplication_Sylius_AdminUi_KernelDevDebugContainer
{
/**
* Gets the private 'cache.app.taggable' shared service.
*
* @return \Symfony\Component\Cache\Adapter\TagAwareAdapter
*/
public static function do($container, $lazyLoad = true)
{
return $container->privates['cache.app.taggable'] = new \Symfony\Component\Cache\Adapter\TagAwareAdapter(($container->services['cache.app'] ?? $container->load('getCache_AppService')));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace ContainerTd9OaK2;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getCache_GlobalClearerService extends TestApplication_Sylius_AdminUi_KernelDevDebugContainer
{
/**
* Gets the public 'cache.global_clearer' shared service.
*
* @return \Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer
*/
public static function do($container, $lazyLoad = true)
{
return $container->services['cache.global_clearer'] = new \Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer(['cache.app' => ($container->services['cache.app'] ?? $container->load('getCache_AppService')), 'cache.system' => ($container->services['cache.system'] ?? $container->load('getCache_SystemService'))]);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace ContainerTd9OaK2;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getCache_SystemClearerService extends TestApplication_Sylius_AdminUi_KernelDevDebugContainer
{
/**
* Gets the public 'cache.system_clearer' shared service.
*
* @return \Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer
*/
public static function do($container, $lazyLoad = true)
{
return $container->services['cache.system_clearer'] = new \Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer(['cache.system' => ($container->services['cache.system'] ?? $container->load('getCache_SystemService'))]);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace ContainerTd9OaK2;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getCache_SystemService extends TestApplication_Sylius_AdminUi_KernelDevDebugContainer
{
/**
* Gets the public 'cache.system' shared service.
*
* @return \Symfony\Component\Cache\Adapter\AdapterInterface
*/
public static function do($container, $lazyLoad = true)
{
return $container->services['cache.system'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('dIBWufqFNB', 0, $container->getParameter('container.build_id'), ($container->targetDir.''.'/pools/system'), ($container->privates['logger'] ?? self::getLoggerService($container)));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace ContainerTd9OaK2;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getConfigBuilder_WarmerService extends TestApplication_Sylius_AdminUi_KernelDevDebugContainer
{
/**
* Gets the private 'config_builder.warmer' shared service.
*
* @return \Symfony\Bundle\FrameworkBundle\CacheWarmer\ConfigBuilderCacheWarmer
*/
public static function do($container, $lazyLoad = true)
{
return $container->privates['config_builder.warmer'] = new \Symfony\Bundle\FrameworkBundle\CacheWarmer\ConfigBuilderCacheWarmer(($container->services['kernel'] ?? $container->get('kernel', 1)), ($container->privates['logger'] ?? self::getLoggerService($container)));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?php

namespace ContainerTd9OaK2;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getConsole_CommandLoaderService extends TestApplication_Sylius_AdminUi_KernelDevDebugContainer
{
/**
* Gets the public 'console.command_loader' shared service.
*
* @return \Symfony\Component\Console\CommandLoader\ContainerCommandLoader
*/
public static function do($container, $lazyLoad = true)
{
return $container->services['console.command_loader'] = new \Symfony\Component\Console\CommandLoader\ContainerCommandLoader(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService ??= $container->getService(...), [
'console.command.about' => ['privates', '.console.command.about.lazy', 'get_Console_Command_About_LazyService', true],
'console.command.assets_install' => ['privates', '.console.command.assets_install.lazy', 'get_Console_Command_AssetsInstall_LazyService', true],
'console.command.cache_clear' => ['privates', '.console.command.cache_clear.lazy', 'get_Console_Command_CacheClear_LazyService', true],
'console.command.cache_pool_clear' => ['privates', '.console.command.cache_pool_clear.lazy', 'get_Console_Command_CachePoolClear_LazyService', true],
'console.command.cache_pool_prune' => ['privates', '.console.command.cache_pool_prune.lazy', 'get_Console_Command_CachePoolPrune_LazyService', true],
'console.command.cache_pool_invalidate_tags' => ['privates', '.console.command.cache_pool_invalidate_tags.lazy', 'get_Console_Command_CachePoolInvalidateTags_LazyService', true],
'console.command.cache_pool_delete' => ['privates', '.console.command.cache_pool_delete.lazy', 'get_Console_Command_CachePoolDelete_LazyService', true],
'console.command.cache_pool_list' => ['privates', '.console.command.cache_pool_list.lazy', 'get_Console_Command_CachePoolList_LazyService', true],
'console.command.cache_warmup' => ['privates', '.console.command.cache_warmup.lazy', 'get_Console_Command_CacheWarmup_LazyService', true],
'console.command.config_debug' => ['privates', '.console.command.config_debug.lazy', 'get_Console_Command_ConfigDebug_LazyService', true],
'console.command.config_dump_reference' => ['privates', '.console.command.config_dump_reference.lazy', 'get_Console_Command_ConfigDumpReference_LazyService', true],
'console.command.container_debug' => ['privates', '.console.command.container_debug.lazy', 'get_Console_Command_ContainerDebug_LazyService', true],
'console.command.container_lint' => ['privates', '.console.command.container_lint.lazy', 'get_Console_Command_ContainerLint_LazyService', true],
'console.command.debug_autowiring' => ['privates', '.console.command.debug_autowiring.lazy', 'get_Console_Command_DebugAutowiring_LazyService', true],
'console.command.dotenv_debug' => ['privates', '.console.command.dotenv_debug.lazy', 'get_Console_Command_DotenvDebug_LazyService', true],
'console.command.event_dispatcher_debug' => ['privates', '.console.command.event_dispatcher_debug.lazy', 'get_Console_Command_EventDispatcherDebug_LazyService', true],
'console.command.router_debug' => ['privates', '.console.command.router_debug.lazy', 'get_Console_Command_RouterDebug_LazyService', true],
'console.command.router_match' => ['privates', '.console.command.router_match.lazy', 'get_Console_Command_RouterMatch_LazyService', true],
'console.command.yaml_lint' => ['privates', '.console.command.yaml_lint.lazy', 'get_Console_Command_YamlLint_LazyService', true],
'console.command.secrets_set' => ['privates', '.console.command.secrets_set.lazy', 'get_Console_Command_SecretsSet_LazyService', true],
'console.command.secrets_remove' => ['privates', '.console.command.secrets_remove.lazy', 'get_Console_Command_SecretsRemove_LazyService', true],
'console.command.secrets_generate_key' => ['privates', '.console.command.secrets_generate_key.lazy', 'get_Console_Command_SecretsGenerateKey_LazyService', true],
'console.command.secrets_list' => ['privates', '.console.command.secrets_list.lazy', 'get_Console_Command_SecretsList_LazyService', true],
'console.command.secrets_decrypt_to_local' => ['privates', '.console.command.secrets_decrypt_to_local.lazy', 'get_Console_Command_SecretsDecryptToLocal_LazyService', true],
'console.command.secrets_encrypt_from_local' => ['privates', '.console.command.secrets_encrypt_from_local.lazy', 'get_Console_Command_SecretsEncryptFromLocal_LazyService', true],
'ux.twig_component.command.debug' => ['privates', '.ux.twig_component.command.debug.lazy', 'get_Ux_TwigComponent_Command_Debug_LazyService', true],
], [
'console.command.about' => '?',
'console.command.assets_install' => '?',
'console.command.cache_clear' => '?',
'console.command.cache_pool_clear' => '?',
'console.command.cache_pool_prune' => '?',
'console.command.cache_pool_invalidate_tags' => '?',
'console.command.cache_pool_delete' => '?',
'console.command.cache_pool_list' => '?',
'console.command.cache_warmup' => '?',
'console.command.config_debug' => '?',
'console.command.config_dump_reference' => '?',
'console.command.container_debug' => '?',
'console.command.container_lint' => '?',
'console.command.debug_autowiring' => '?',
'console.command.dotenv_debug' => '?',
'console.command.event_dispatcher_debug' => '?',
'console.command.router_debug' => '?',
'console.command.router_match' => '?',
'console.command.yaml_lint' => '?',
'console.command.secrets_set' => '?',
'console.command.secrets_remove' => '?',
'console.command.secrets_generate_key' => '?',
'console.command.secrets_list' => '?',
'console.command.secrets_decrypt_to_local' => '?',
'console.command.secrets_encrypt_from_local' => '?',
'ux.twig_component.command.debug' => '?',
]), ['about' => 'console.command.about', 'assets:install' => 'console.command.assets_install', 'cache:clear' => 'console.command.cache_clear', 'cache:pool:clear' => 'console.command.cache_pool_clear', 'cache:pool:prune' => 'console.command.cache_pool_prune', 'cache:pool:invalidate-tags' => 'console.command.cache_pool_invalidate_tags', 'cache:pool:delete' => 'console.command.cache_pool_delete', 'cache:pool:list' => 'console.command.cache_pool_list', 'cache:warmup' => 'console.command.cache_warmup', 'debug:config' => 'console.command.config_debug', 'config:dump-reference' => 'console.command.config_dump_reference', 'debug:container' => 'console.command.container_debug', 'lint:container' => 'console.command.container_lint', 'debug:autowiring' => 'console.command.debug_autowiring', 'debug:dotenv' => 'console.command.dotenv_debug', 'debug:event-dispatcher' => 'console.command.event_dispatcher_debug', 'debug:router' => 'console.command.router_debug', 'router:match' => 'console.command.router_match', 'lint:yaml' => 'console.command.yaml_lint', 'secrets:set' => 'console.command.secrets_set', 'secrets:remove' => 'console.command.secrets_remove', 'secrets:generate-keys' => 'console.command.secrets_generate_key', 'secrets:list' => 'console.command.secrets_list', 'secrets:decrypt-to-local' => 'console.command.secrets_decrypt_to_local', 'secrets:encrypt-from-local' => 'console.command.secrets_encrypt_from_local', 'debug:twig-component' => 'ux.twig_component.command.debug']);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace ContainerTd9OaK2;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getConsole_Command_AboutService extends TestApplication_Sylius_AdminUi_KernelDevDebugContainer
{
/**
* Gets the private 'console.command.about' shared service.
*
* @return \Symfony\Bundle\FrameworkBundle\Command\AboutCommand
*/
public static function do($container, $lazyLoad = true)
{
$container->privates['console.command.about'] = $instance = new \Symfony\Bundle\FrameworkBundle\Command\AboutCommand();

$instance->setName('about');
$instance->setDescription('Display information about the current project');

return $instance;
}
}
Loading

0 comments on commit b8eeac8

Please sign in to comment.