Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'menu' => [
|
||||
'main' => [
|
||||
'items' => [
|
||||
'mautic.dynamicContent.dynamicContent' => [
|
||||
'route' => 'mautic_dynamicContent_index',
|
||||
'access' => ['dynamiccontent:dynamiccontents:viewown', 'dynamiccontent:dynamiccontents:viewother'],
|
||||
'parent' => 'mautic.core.components',
|
||||
'priority' => 90,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'routes' => [
|
||||
'main' => [
|
||||
'mautic_dynamicContent_index' => [
|
||||
'path' => '/dwc/{page}',
|
||||
'controller' => 'Mautic\DynamicContentBundle\Controller\DynamicContentController::indexAction',
|
||||
],
|
||||
'mautic_dynamicContent_action' => [
|
||||
'path' => '/dwc/{objectAction}/{objectId}',
|
||||
'controller' => 'Mautic\DynamicContentBundle\Controller\DynamicContentController::executeAction',
|
||||
],
|
||||
],
|
||||
'public' => [
|
||||
'mautic_api_dynamicContent_index' => [
|
||||
'path' => '/dwc',
|
||||
'controller' => 'Mautic\DynamicContentBundle\Controller\DynamicContentApiController::getAction',
|
||||
],
|
||||
'mautic_api_dynamicContent_action' => [
|
||||
'path' => '/dwc/{objectAlias}',
|
||||
'controller' => 'Mautic\DynamicContentBundle\Controller\DynamicContentApiController::processAction',
|
||||
],
|
||||
],
|
||||
'api' => [
|
||||
'mautic_api_dynamicContent_standard' => [
|
||||
'standard_entity' => true,
|
||||
'name' => 'dynamicContents',
|
||||
'path' => '/dynamiccontents',
|
||||
'controller' => Mautic\DynamicContentBundle\Controller\Api\DynamicContentApiController::class,
|
||||
],
|
||||
],
|
||||
],
|
||||
'services' => [
|
||||
'forms' => [
|
||||
'mautic.form.type.dwc_entry_filters' => [
|
||||
'class' => Mautic\DynamicContentBundle\Form\Type\DwcEntryFiltersType::class,
|
||||
'arguments' => [
|
||||
'translator',
|
||||
'mautic.lead.model.list',
|
||||
],
|
||||
'methodCalls' => [
|
||||
'setConnection' => [
|
||||
'database_connection',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'other' => [
|
||||
'mautic.helper.dynamicContent' => [
|
||||
'class' => Mautic\DynamicContentBundle\Helper\DynamicContentHelper::class,
|
||||
'arguments' => [
|
||||
'mautic.dynamicContent.model.dynamicContent',
|
||||
'mautic.campaign.executioner.realtime',
|
||||
'event_dispatcher',
|
||||
'mautic.lead.model.lead',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,25 @@
|
||||
<?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 = [
|
||||
];
|
||||
|
||||
$services->load('Mautic\\DynamicContentBundle\\', '../')
|
||||
->exclude('../{'.implode(',', array_merge(MauticCoreExtension::DEFAULT_EXCLUDES, $excludes)).'}');
|
||||
|
||||
$services->load('Mautic\\DynamicContentBundle\\Entity\\', '../Entity/*Repository.php')
|
||||
->tag(Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\ServiceRepositoryCompilerPass::REPOSITORY_SERVICE_TAG);
|
||||
$services->alias('mautic.dynamicContent.model.dynamicContent', Mautic\DynamicContentBundle\Model\DynamicContentModel::class);
|
||||
$services->alias('mautic.dynamicContent.repository.stat', Mautic\DynamicContentBundle\Entity\StatRepository::class);
|
||||
};
|
||||
Reference in New Issue
Block a user