Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
'routes' => [
|
||||
'main' => [],
|
||||
'public' => [],
|
||||
'api' => [],
|
||||
],
|
||||
'menu' => [],
|
||||
'services' => [
|
||||
'events' => [
|
||||
'mautic.cache.clear_cache_subscriber' => [
|
||||
'class' => Mautic\CacheBundle\EventListener\CacheClearSubscriber::class,
|
||||
'tags' => ['kernel.cache_clearer'],
|
||||
'arguments' => [
|
||||
'mautic.cache.provider',
|
||||
'monolog.logger.mautic',
|
||||
],
|
||||
],
|
||||
],
|
||||
'other' => [
|
||||
'mautic.cache.adapter.filesystem' => [
|
||||
'class' => Mautic\CacheBundle\Cache\Adapter\FilesystemTagAwareAdapter::class,
|
||||
'arguments' => [
|
||||
'%mautic.cache_prefix%',
|
||||
'%mautic.cache_lifetime%',
|
||||
'%mautic.tmp_path%',
|
||||
],
|
||||
'tag' => 'mautic.cache.adapter',
|
||||
],
|
||||
'mautic.cache.adapter.memcached' => [
|
||||
'class' => Mautic\CacheBundle\Cache\Adapter\MemcachedTagAwareAdapter::class,
|
||||
'arguments' => [
|
||||
'%mautic.cache_adapter_memcached%',
|
||||
'%mautic.cache_prefix%',
|
||||
'%mautic.cache_lifetime%',
|
||||
],
|
||||
'tag' => 'mautic.cache.adapter',
|
||||
],
|
||||
],
|
||||
'models' => [],
|
||||
'validator' => [],
|
||||
],
|
||||
|
||||
'parameters' => [
|
||||
'cache_adapter' => 'mautic.cache.adapter.filesystem',
|
||||
'cache_adapter_tag_aware' => 'mautic.cache.adapter.filesystem',
|
||||
'cache_prefix' => '',
|
||||
'cache_lifetime' => 86400,
|
||||
'cache_adapter_memcached' => [
|
||||
'servers' => ['memcached://localhost'],
|
||||
'options' => [
|
||||
'compression' => true,
|
||||
'libketama_compatible' => true,
|
||||
'serializer' => 'igbinary',
|
||||
],
|
||||
],
|
||||
'cache_adapter_redis' => [
|
||||
'dsn' => 'redis://localhost',
|
||||
'options' => [
|
||||
'lazy' => false,
|
||||
'persistent' => 0,
|
||||
'persistent_id' => null,
|
||||
'timeout' => 30,
|
||||
'read_timeout' => 0,
|
||||
'retry_interval' => 0,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Mautic\CoreBundle\DependencyInjection\MauticCoreExtension;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return function (ContainerConfigurator $configurator): void {
|
||||
$services = $configurator->services()
|
||||
->defaults()
|
||||
->autowire()
|
||||
->autoconfigure()
|
||||
->public();
|
||||
|
||||
$services->load('Mautic\\CacheBundle\\', '../')
|
||||
->exclude('../{'.implode(',', MauticCoreExtension::DEFAULT_EXCLUDES).'}');
|
||||
|
||||
$services->alias(Mautic\CacheBundle\Cache\CacheProviderInterface::class, Mautic\CacheBundle\Cache\CacheProvider::class);
|
||||
$services->alias('mautic.cache.provider', Mautic\CacheBundle\Cache\CacheProvider::class);
|
||||
$services->alias('mautic.cache.provider_tag_aware', Mautic\CacheBundle\Cache\CacheProviderTagAware::class);
|
||||
$services->alias('mautic.cache.adapter.redis', Mautic\CacheBundle\Cache\Adapter\RedisAdapter::class);
|
||||
$services->alias('mautic.cache.adapter.redis_tag_aware', Mautic\CacheBundle\Cache\Adapter\RedisTagAwareAdapter::class);
|
||||
|
||||
$services->get(Mautic\CacheBundle\Cache\Adapter\RedisAdapter::class)
|
||||
->tag('mautic.cache.adapter');
|
||||
$services->get(Mautic\CacheBundle\Cache\Adapter\RedisTagAwareAdapter::class)
|
||||
->tag('mautic.cache.adapter');
|
||||
};
|
||||
Reference in New Issue
Block a user