Platform.sh Site Access Matcher

Install Package

Platform.sh Siteaccess Matcher Bundle

Paltform.sh allows you to have multiple environments (stage, feature specific and so). But those environments will use autogenerated URLs. And it might be a problem, if you have multiple siteaccesses in your eZ Platform installation and Map\Host matcher is used. This bundle override default Map\Host and tries to extract correct host name from Platform.sh environment variables. Which fixes this issue.

Installation

Run composer require:

$ composer require contextualcode/platformsh-siteaccess-matcher-bundle

Enable this bundle in app/AppKernel.php (ezpublish/EzPublishKernel.php) file by adding next line in registerBundles method:

    public function registerBundles()
    {
        $bundles = array(
            ...
            new ContextualCode\PlatformShSiteAccessMatcherBundle\ContextualCodePlatformShSiteAccessMatcherBundle()
        );

Commit and deploy this changes to Platform.sh:

$ git add composer.json composer.lock app/AppKernel.php
$ git commit -m "Installing platformsh-siteaccess-matcher-bundle"
$ git push platform master

Done! All siteaccess will be matched correctly on all new Platform.sh environments with autogenerated URLs.

blog comments powered by Disqus

Created by:

Downloads:

5320

Stars:

0

Forks:

0

Created:

Updated: