novactive / ezsiteaccessmatchers-bundle
eZ publish Bundle providing additional siteaccess matchers
Installs: 492
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- ezsystems/ezpublish-kernel: ^6.0 || ^7.0
- symfony/framework-bundle: ^2.0 || ^3.0
Requires (Dev)
- phpmd/phpmd: ^2.0
- phpunit/phpunit: ^5.0|^6.0|^7.0
- sebastian/phpcpd: ^3.0|^4.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2020-11-13 02:34:02 UTC
README
About
This eZ publish bundle provides additional siteaccess matchers, usefull for mapping siteacesses with Platform.sh dynamic environments urls.
The new matchers are :
- 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 :
composer require novactive/ezsiteaccessmatchers-bundle
Register the bundle in the kernel of your application :
// 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 :
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 :
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 :
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:
LICENSE