Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
'name' => 'GrapesJS Builder',
|
||||
'description' => 'GrapesJS Builder with MJML support for Mautic',
|
||||
'version' => '1.0.0',
|
||||
'author' => 'Mautic Community',
|
||||
'routes' => [
|
||||
'main' => [
|
||||
'grapesjsbuilder_upload' => [
|
||||
'path' => '/grapesjsbuilder/upload',
|
||||
'controller' => 'MauticPlugin\GrapesJsBuilderBundle\Controller\FileManagerController::uploadAction',
|
||||
],
|
||||
'grapesjsbuilder_delete' => [
|
||||
'path' => '/grapesjsbuilder/delete',
|
||||
'controller' => 'MauticPlugin\GrapesJsBuilderBundle\Controller\FileManagerController::deleteAction',
|
||||
],
|
||||
/** @depreacated since Mautic 5.2, to be removed in 6.0. Use grapesjsbuilder_media instead */
|
||||
'grapesjsbuilder_assets' => [
|
||||
'path' => '/grapesjsbuilder/assets',
|
||||
'controller' => 'MauticPlugin\GrapesJsBuilderBundle\Controller\FileManagerController::assetsAction',
|
||||
],
|
||||
'grapesjsbuilder_media' => [
|
||||
'path' => '/grapesjsbuilder/media',
|
||||
'controller' => 'MauticPlugin\GrapesJsBuilderBundle\Controller\FileManagerController::getMediaAction',
|
||||
],
|
||||
'grapesjsbuilder_builder' => [
|
||||
'path' => '/grapesjsbuilder/{objectType}/{objectId}',
|
||||
'controller' => 'MauticPlugin\GrapesJsBuilderBundle\Controller\GrapesJsController::builderAction',
|
||||
],
|
||||
],
|
||||
'public' => [],
|
||||
'api' => [],
|
||||
],
|
||||
'menu' => [],
|
||||
'services' => [
|
||||
'other' => [
|
||||
// Provides access to configured API keys, settings, field mapping, etc
|
||||
'grapesjsbuilder.config' => [
|
||||
'class' => MauticPlugin\GrapesJsBuilderBundle\Integration\Config::class,
|
||||
'arguments' => [
|
||||
'mautic.integrations.helper',
|
||||
],
|
||||
],
|
||||
],
|
||||
'sync' => [],
|
||||
'helpers' => [
|
||||
'grapesjsbuilder.helper.filemanager' => [
|
||||
'class' => MauticPlugin\GrapesJsBuilderBundle\Helper\FileManager::class,
|
||||
'arguments' => [
|
||||
'mautic.helper.file_uploader',
|
||||
'mautic.helper.core_parameters',
|
||||
'mautic.helper.paths',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'parameters' => [
|
||||
'image_path_exclude' => ['flags', 'mejs'], // exclude certain folders from showing in the image browser
|
||||
'static_url' => '', // optional base url for images
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,34 @@
|
||||
<?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 = [
|
||||
'node_modules',
|
||||
];
|
||||
|
||||
$services->load('MauticPlugin\\GrapesJsBuilderBundle\\', '../')
|
||||
->exclude('../{'.implode(',', array_merge(MauticCoreExtension::DEFAULT_EXCLUDES, $excludes)).'}');
|
||||
|
||||
$services->load('MauticPlugin\\GrapesJsBuilderBundle\\Entity\\', '../Entity/*Repository.php');
|
||||
|
||||
$services->alias('grapesjsbuilder.model', MauticPlugin\GrapesJsBuilderBundle\Model\GrapesJsBuilderModel::class);
|
||||
// Basic definitions with name, display name and icon
|
||||
$services->alias('mautic.integration.grapesjsbuilder', MauticPlugin\GrapesJsBuilderBundle\Integration\GrapesJsBuilderIntegration::class);
|
||||
// Provides the form types to use for the configuration UI
|
||||
$services->alias('grapesjsbuilder.integration.configuration', MauticPlugin\GrapesJsBuilderBundle\Integration\Support\ConfigSupport::class);
|
||||
// Tells Mautic what themes it should support when enabled
|
||||
$services->alias('grapesjsbuilder.integration.builder', MauticPlugin\GrapesJsBuilderBundle\Integration\Support\BuilderSupport::class);
|
||||
|
||||
$services->get(MauticPlugin\GrapesJsBuilderBundle\InstallFixtures\ORM\GrapesJsData::class)
|
||||
->tag(Doctrine\Bundle\FixturesBundle\DependencyInjection\CompilerPass\FixturesCompilerPass::FIXTURE_TAG);
|
||||
};
|
||||
Reference in New Issue
Block a user