PHP code example of agence-adeliom / sylius-happy-cms-plugin

1. Go to this page and download the library: Download agence-adeliom/sylius-happy-cms-plugin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

agence-adeliom / sylius-happy-cms-plugin example snippets




return [
    // ...
    Adeliom\SyliusEasyCrudPlugin\SyliusEasyCrudPlugin::class => ['all' => true],
    Adeliom\SyliusHappyCMSPlugin\SyliusHappyCMSPlugin::class => ['all' => true],
   
    Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true, 'test' => true],
];

  final class Kernel extends BaseKernel implements CompilerPassInterface
  {
      use MicroKernelTrait;

      public function process(ContainerBuilder $container): void
      {
          $container->removeDefinition('sylius.event_subscriber.x_frame_options');
      }
  }
  
yaml
sylius_happy_cms_admin:
  resource: "@SyliusHappyCMSPlugin/config/routes/admin.yaml"
  host: '%admin_host%'

sylius_happy_cms_media_admin:
  resource: "@SyliusHappyCMSPlugin/config/routes/media_admin.php"
  host: '%admin_host%'

sylius_happy_cms_media_public:
  resource: "@SyliusHappyCMSPlugin/config/routes/media_public.php"
bash
php bin/console make:happy-cms:install
bash
php bin/console assets:install