PHP code example of prodigious / symfony-multisite-bundle

1. Go to this page and download the library: Download prodigious/symfony-multisite-bundle 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/ */

    

prodigious / symfony-multisite-bundle example snippets


    $bundles = array(
        ...
        new Prodigious\MultisiteBundle\MultisiteBundle(),
        ...
    );

// quire __DIR__.'/../sites/autoload/sites.php';

if (PHP_VERSION_ID < 70000) {
    ERSION_ID < 70000) {
    $kernel->loadClassCache();
}





    // app.php
    $kernel = new AppKernel('prod', false);
    // app_dev.php
    $kernel = new AppKernel('dev', true);

    // app.php
    $kernel = new MultisiteKernel('prod', false);
    $kernel->setSite($site);
    // app_dev.php
    $kernel = new MultisiteKernel('dev', true);
    $kernel->setSite($site);


php bin/console site:list



php bin/console site:disable --name=demo_1



php bin/console site:enable --name=demo_1



php bin/console site:delete --name=demo_1



php bin/console site:config:sync