Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'routes' => [
|
||||
'public' => [
|
||||
'mautic_installer_home' => [
|
||||
'path' => '/installer',
|
||||
'controller' => 'Mautic\InstallBundle\Controller\InstallController::stepAction',
|
||||
],
|
||||
'mautic_installer_remove_slash' => [
|
||||
'path' => '/installer/',
|
||||
'controller' => 'Mautic\CoreBundle\Controller\CommonController::removeTrailingSlashAction',
|
||||
],
|
||||
'mautic_installer_step' => [
|
||||
'path' => '/installer/step/{index}',
|
||||
'controller' => 'Mautic\InstallBundle\Controller\InstallController::stepAction',
|
||||
],
|
||||
'mautic_installer_final' => [
|
||||
'path' => '/installer/final',
|
||||
'controller' => 'Mautic\InstallBundle\Controller\InstallController::finalAction',
|
||||
],
|
||||
'mautic_installer_catchcall' => [
|
||||
'path' => '/installer/{noerror}',
|
||||
'controller' => 'Mautic\InstallBundle\Controller\InstallController::stepAction',
|
||||
'requirements' => [
|
||||
'noerror' => '^(?).+',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'services' => [
|
||||
'fixtures' => [
|
||||
'mautic.install.fixture.lead_field' => [
|
||||
'class' => Mautic\InstallBundle\InstallFixtures\ORM\LeadFieldData::class,
|
||||
'tag' => Doctrine\Bundle\FixturesBundle\DependencyInjection\CompilerPass\FixturesCompilerPass::FIXTURE_TAG,
|
||||
'arguments' => ['translator'],
|
||||
],
|
||||
'mautic.install.fixture.role' => [
|
||||
'class' => Mautic\InstallBundle\InstallFixtures\ORM\RoleData::class,
|
||||
'tag' => Doctrine\Bundle\FixturesBundle\DependencyInjection\CompilerPass\FixturesCompilerPass::FIXTURE_TAG,
|
||||
'arguments' => ['translator'],
|
||||
],
|
||||
'mautic.install.fixture.report_data' => [
|
||||
'class' => Mautic\InstallBundle\InstallFixtures\ORM\LoadReportData::class,
|
||||
'tag' => Doctrine\Bundle\FixturesBundle\DependencyInjection\CompilerPass\FixturesCompilerPass::FIXTURE_TAG,
|
||||
'arguments' => [],
|
||||
],
|
||||
],
|
||||
'other' => [
|
||||
'mautic.install.configurator.step.check' => [
|
||||
'class' => Mautic\InstallBundle\Configurator\Step\CheckStep::class,
|
||||
'arguments' => [
|
||||
'mautic.configurator',
|
||||
'%kernel.project_dir%',
|
||||
'request_stack',
|
||||
'mautic.cipher.openssl',
|
||||
],
|
||||
'tag' => 'mautic.configurator.step',
|
||||
'tagArguments' => [
|
||||
'priority' => 0,
|
||||
],
|
||||
],
|
||||
'mautic.install.configurator.step.doctrine' => [
|
||||
'class' => Mautic\InstallBundle\Configurator\Step\DoctrineStep::class,
|
||||
'arguments' => [
|
||||
'mautic.configurator',
|
||||
],
|
||||
'tag' => 'mautic.configurator.step',
|
||||
'tagArguments' => [
|
||||
'priority' => 1,
|
||||
],
|
||||
],
|
||||
'mautic.install.configurator.step.user' => [
|
||||
'class' => Mautic\InstallBundle\Configurator\Step\UserStep::class,
|
||||
'tag' => 'mautic.configurator.step',
|
||||
'tagArguments' => [
|
||||
'priority' => 2,
|
||||
],
|
||||
],
|
||||
'mautic.install.service' => [
|
||||
'class' => Mautic\InstallBundle\Install\InstallService::class,
|
||||
'arguments' => [
|
||||
'mautic.configurator',
|
||||
'mautic.helper.cache',
|
||||
'mautic.helper.paths',
|
||||
'doctrine.orm.entity_manager',
|
||||
'translator',
|
||||
'kernel',
|
||||
'validator',
|
||||
'security.password_hasher',
|
||||
'mautic.doctrine.loader.mautic_fixtures_loader',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,21 @@
|
||||
<?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();
|
||||
|
||||
$excludes = [
|
||||
'Helper/SchemaHelper.php',
|
||||
];
|
||||
|
||||
$services->load('Mautic\\InstallBundle\\', '../')
|
||||
->exclude('../{'.implode(',', array_merge(MauticCoreExtension::DEFAULT_EXCLUDES, $excludes)).'}');
|
||||
};
|
||||
Reference in New Issue
Block a user