Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'routes' => [
|
||||
'main' => [
|
||||
'mautic_message_index' => [
|
||||
'path' => '/messages/{page}',
|
||||
'controller' => 'Mautic\ChannelBundle\Controller\MessageController::indexAction',
|
||||
],
|
||||
'mautic_message_contacts' => [
|
||||
'path' => '/messages/contacts/{objectId}/{channel}/{page}',
|
||||
'controller' => 'Mautic\ChannelBundle\Controller\MessageController::contactsAction',
|
||||
],
|
||||
'mautic_message_action' => [
|
||||
'path' => '/messages/{objectAction}/{objectId}',
|
||||
'controller' => 'Mautic\ChannelBundle\Controller\MessageController::executeAction',
|
||||
],
|
||||
'mautic_channel_batch_contact_set' => [
|
||||
'path' => '/channels/batch/contact/set',
|
||||
'controller' => 'Mautic\ChannelBundle\Controller\BatchContactController::setAction',
|
||||
],
|
||||
'mautic_channel_batch_contact_view' => [
|
||||
'path' => '/channels/batch/contact/view',
|
||||
'controller' => 'Mautic\ChannelBundle\Controller\BatchContactController::indexAction',
|
||||
],
|
||||
],
|
||||
'api' => [
|
||||
'mautic_api_messagetandard' => [
|
||||
'standard_entity' => true,
|
||||
'name' => 'messages',
|
||||
'path' => '/messages',
|
||||
'controller' => Mautic\ChannelBundle\Controller\Api\MessageApiController::class,
|
||||
],
|
||||
],
|
||||
'public' => [
|
||||
],
|
||||
],
|
||||
|
||||
'menu' => [
|
||||
'main' => [
|
||||
'mautic.channel.messages' => [
|
||||
'route' => 'mautic_message_index',
|
||||
'access' => ['channel:messages:viewown', 'channel:messages:viewother'],
|
||||
'parent' => 'mautic.core.channels',
|
||||
'priority' => 110,
|
||||
],
|
||||
],
|
||||
'admin' => [
|
||||
],
|
||||
'profile' => [
|
||||
],
|
||||
'extra' => [
|
||||
],
|
||||
],
|
||||
|
||||
'categories' => [
|
||||
'messages' => [
|
||||
'class' => Mautic\ChannelBundle\Entity\Message::class,
|
||||
],
|
||||
],
|
||||
|
||||
'services' => [
|
||||
'helpers' => [
|
||||
'mautic.channel.helper.channel_list' => [
|
||||
'class' => Mautic\ChannelBundle\Helper\ChannelListHelper::class,
|
||||
'arguments' => [
|
||||
'event_dispatcher',
|
||||
'translator',
|
||||
],
|
||||
'alias' => 'channel',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'parameters' => [
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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 = [
|
||||
'PreferenceBuilder/ChannelPreferences.php',
|
||||
'PreferenceBuilder/PreferenceBuilder.php',
|
||||
];
|
||||
|
||||
$services->load('Mautic\\ChannelBundle\\', '../')
|
||||
->exclude('../{'.implode(',', array_merge(MauticCoreExtension::DEFAULT_EXCLUDES, $excludes)).'}');
|
||||
|
||||
$services->load('Mautic\\ChannelBundle\\Entity\\', '../Entity/*Repository.php')
|
||||
->tag(Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\ServiceRepositoryCompilerPass::REPOSITORY_SERVICE_TAG);
|
||||
$services->alias('mautic.channel.model.message', Mautic\ChannelBundle\Model\MessageModel::class);
|
||||
$services->alias('mautic.channel.model.queue', Mautic\ChannelBundle\Model\MessageQueueModel::class);
|
||||
$services->alias('mautic.channel.model.channel.action', Mautic\ChannelBundle\Model\ChannelActionModel::class);
|
||||
$services->alias('mautic.channel.model.frequency.action', Mautic\ChannelBundle\Model\FrequencyActionModel::class);
|
||||
$services->alias('mautic.channel.repository.message_queue', Mautic\ChannelBundle\Entity\MessageQueueRepository::class);
|
||||
};
|
||||
Reference in New Issue
Block a user