This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Vendor\Bundle\ProjectBundle\Core\Search\Solr\Query\Content\FacetBuilder; | |
use eZ\Publish\API\Repository\Values\Content\Query\FacetBuilder; | |
class SuggestionFacetBuilder extends FacetBuilder | |
{ | |
public $prefix; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
client_name.ezpublish.repository.permission_criterion_handler.class: eZ\Publish\Core\Repository\PermissionsCriterionHandler | |
client_name.ezpublish.repository.domain_mapper.factory.class: ClientName\Bundle\ProjectBundle\ApiLoader\RepositoryDomainMapperFactory | |
client_name.ezpublish.repository.domain_mapper.class: eZ\Publish\Core\Repository\Helper\DomainMapper | |
services: | |
# Legacy Search Service | |
client_name.ezpublish.repository.domain_mapper.factory: | |
class: %client_name.ezpublish.repository.domain_mapper.factory.class% | |
arguments: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace ClientName\Bundle\ProjectBundle\ApiLoader; | |
use eZ\Publish\Core\Base\Container\ApiLoader\FieldTypeCollectionFactory; | |
use eZ\Publish\Core\Repository\Helper\DomainMapper; | |
use eZ\Publish\Core\Repository\Helper\FieldTypeRegistry; | |
use eZ\Publish\SPI\Persistence; | |
use Symfony\Component\DependencyInjection\ContainerAware; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ $# -eq 0 ]] ; then | |
echo 'ERROR: no version provided' | |
exit 1 | |
fi | |
if [ ${2} ] ; then | |
./__solr/${1}/bin/solr stop -all | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROJECTROOT=`pwd` | |
if [ ! -f ${PROJECTROOT}/.php_cs ]; then | |
exit 0 | |
fi | |
hash php-cs-fixer 2>/dev/null || { echo >&2 "I require php-cs-fixer but it's not installed. Aborting."; exit 1; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"took": 3, | |
"timed_out": false, | |
"_shards": { | |
"total": 5, | |
"successful": 5, | |
"failed": 0 | |
}, | |
"hits": { | |
"total": 22, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class PageController extends Controller | |
{ | |
... | |
/** | |
* | |
* | |
* @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/eZ/Publish/Core/Repository/URLAliasService.php b/eZ/Publish/Core/Repository/URLAliasService.php | |
index 065956e..348a9a5 100644 | |
--- a/eZ/Publish/Core/Repository/URLAliasService.php | |
+++ b/eZ/Publish/Core/Repository/URLAliasService.php | |
@@ -257,8 +257,23 @@ class URLAliasService implements URLAliasServiceInterface | |
*/ | |
protected function selectAliasLanguageCode( SPIURLAlias $spiUrlAlias, $languageCode ) | |
{ | |
- if ( isset( $languageCode ) && !in_array( $languageCode, $spiUrlAlias->languageCodes ) ) | |
+ if ( isset( $languageCode ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example of Criterions not relating to each other: | |
There is a Content with two Locations: Location A and Location B | |
- Location A is visible | |
- Location B is hidden | |
Searching with LocationId criterion with Location B id and Visibility | |
criterion with Visibility::VISIBLE will return the Content because | |
conditions are satisfied: |
NewerOlder