2017 © Pedro Peláez
 

symfony-bundle ezsiteaccessmatchers-bundle

eZ publish Bundle providing additional siteaccess matchers

image

novactive/ezsiteaccessmatchers-bundle

eZ publish Bundle providing additional siteaccess matchers

  • Monday, March 26, 2018
  • by NovaDT
  • Repository
  • 5 Watchers
  • 0 Stars
  • 132 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 89 % Grown

The README.md

eZ (platform) Siteaccess Matchers Bundle

master Build Status

About

This eZ publish bundle provides additional siteaccess matchers, usefull for mapping siteacesses with Platform.sh dynamic environments urls., (*1)

The new matchers are :, (*2)

  • ExtendedHostElement : use a host element for siteaccess identification and replace the provided patterns in the string ( ex: "-" by "_" )
  • SuffixedHostElement : use a host element for siteaccess identification and suffix it with the provided string
  • PrefixedHostElement : use a host element for siteaccess identification and prefix it with the provided string

Installation

The recommended way to install this bundle is through Composer. Just run :, (*3)

composer require novactive/ezsiteaccessmatchers-bundle

Register the bundle in the kernel of your application :, (*4)

// ezpublish/EzPublishKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Novactive\EzSiteaccessMatchersBundle\NovaEzSiteaccessMatchersBundle(),
    );

    return $bundles;
}

Usage

ExtendedHostElement matcher:

In your ezpublish/config/ezpublish.yml / app/config/ezplatform.yml config file :, (*5)

ezpublish:
    ...
    siteaccess:
        ...
        match:
            \Novactive\EzSiteaccessMatchersBundle\Matcher\ExtendedHostElement:
                elementNumber: 1
# Replacements config is not mandatory as following config is default one
#                replacements:
#                    pattern: '-'
#                    replacement: '_'
# You could also provide array of patterns / replacements strings
#                replacements:
#                    pattern: ['-']
#                    replacement: ['_']

SuffixedHostElement matcher:

In your ezpublish/config/ezpublish.yml / app/config/ezplatform.yml config file :, (*6)

ezpublish:
    ...
    siteaccess:
        ...
        match:
            \Novactive\EzSiteaccessMatchersBundle\Matcher\SuffixedHostElement:
                elementNumber: 1
                suffix: test

PrefixedHostElement matcher:

In your ezpublish/config/ezpublish.yml / app/config/ezplatform.yml config file :, (*7)

ezpublish:
    ...
    siteaccess:
        ...
        match:
            \Novactive\EzSiteaccessMatchersBundle\Matcher\PrefixedHostElement:
                elementNumber: 1
                prefix: test

License

This bundle is released under the MIT license. See the complete license in the bundle:, (*8)

LICENSE

The Versions

26/03 2018

dev-master

9999999-dev

eZ publish Bundle providing additional siteaccess matchers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Maïssa

26/03 2018

1.0.1

1.0.1.0

eZ publish Bundle providing additional siteaccess matchers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Maïssa

24/03 2018

1.0.0

1.0.0.0

eZ publish Bundle providing additional siteaccess matchers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Maïssa