Skip to content

Commit

Permalink
Merge branch 'task/add-workspace-contentstream-mapping-to-contentgrap…
Browse files Browse the repository at this point in the history
…h' into task/replace-workspace-and-contentstreamfinder
  • Loading branch information
bwaidelich committed May 28, 2024
2 parents c599090 + 4a9b398 commit 96e3fb4
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 27 deletions.
6 changes: 0 additions & 6 deletions .composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"suggest": {
},
"provide": {
},
"scripts": {
"lint:phpcs": "../../bin/phpcs --colors",
"lint:phpcs:fix": "../../bin/phpcbf --colors",
Expand All @@ -32,9 +30,6 @@
"FLOW_CONTEXT=Testing/Behat ../../bin/paratest --debug -v --functional --group parallel --processes 2 --colors --stop-on-failure -c ../../Build/BuildEssentials/PhpUnit/FunctionalTests.xml Neos.ContentRepository.BehavioralTests/Tests/Functional/Feature/WorkspacePublication/WorkspaceWritingDuringPublication.php",
"FLOW_CONTEXT=Testing/Behat ../../bin/paratest --debug -v --functional --group parallel --processes 2 --colors --stop-on-failure -c ../../Build/BuildEssentials/PhpUnit/FunctionalTests.xml Neos.ContentRepository.BehavioralTests/Tests/Functional/Feature/WorkspacePublication/WorkspaceWritingDuringPublication.php"
],
"test:functional": [
"../../bin/phpunit --colors --stop-on-failure -c ../../Build/BuildEssentials/PhpUnit/FunctionalTests.xml Neos.ContentRepository.Core/Tests/Functional"
],
"test:behat-cli": "../../bin/behat -f progress --strict --no-interaction",
"test:behavioral": [
"@test:behat-cli -c Neos.ContentRepository.BehavioralTests/Tests/Behavior/behat.yml.dist",
Expand All @@ -56,7 +51,6 @@
],
"test": [
"@test:unit",
"@test:functional",
"@test:behavioral",
"@test:parallel"
],
Expand Down
3 changes: 3 additions & 0 deletions Neos.ContentGraph.DoctrineDbalAdapter/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"docs": "https://docs.neos.io/"
},
"license": "GPL-3.0+",
"provide": {
"neos/contentrepositoryregistry-storageclient": "self.version"
},
"require": {
"neos/contentrepository-core": "self.version",
"doctrine/dbal": "^2.13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,11 @@
/**
* A preg pattern to match against node aggregate identifiers
*/
public const PATTERN = '/^([a-z0-9\-]{1,64})$/';
private const PATTERN = '/^([a-z0-9\-]{1,64})$/';

private function __construct(
public string $value
) {
if (!preg_match(self::PATTERN, $value)) {
throw new \InvalidArgumentException(
'Invalid node aggregate identifier "' . $value
. '" (a node aggregate identifier must only contain lowercase characters, numbers and the "-" sign).',
1505840197862
);
}
}

public static function create(): self
Expand All @@ -47,9 +40,21 @@ public static function create(): self

public static function fromString(string $value): self
{
if (!self::hasValidFormat($value)) {
throw new \InvalidArgumentException(
'Invalid node aggregate identifier "' . $value
. '" (a node aggregate identifier must only contain lowercase characters, numbers and the "-" sign).',
1505840197862
);
}
return new self($value);
}

public static function tryFromString(string $value): ?self
{
return self::hasValidFormat($value) ? new self($value) : null;
}

public function equals(self $other): bool
{
return $this->value === $other->value;
Expand All @@ -59,4 +64,9 @@ public function jsonSerialize(): string
{
return $this->value;
}

private static function hasValidFormat(string $value): bool
{
return preg_match(self::PATTERN, $value) === 1;
}
}
2 changes: 1 addition & 1 deletion Neos.Neos/Documentation/References/CommandReference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ commands that may be available, use::

./flow help

The following reference was automatically generated from code on 2024-05-25
The following reference was automatically generated from code on 2024-05-26


.. _`Neos Command Reference: NEOS.FLOW`:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
FluidAdaptor ViewHelper Reference
#################################

This reference was automatically generated from code on 2024-05-25
This reference was automatically generated from code on 2024-05-26


.. _`FluidAdaptor ViewHelper Reference: f:debug`:
Expand Down
2 changes: 1 addition & 1 deletion Neos.Neos/Documentation/References/ViewHelpers/Form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Form ViewHelper Reference
#########################

This reference was automatically generated from code on 2024-05-25
This reference was automatically generated from code on 2024-05-26


.. _`Form ViewHelper Reference: neos.form:form`:
Expand Down
2 changes: 1 addition & 1 deletion Neos.Neos/Documentation/References/ViewHelpers/Media.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Media ViewHelper Reference
##########################

This reference was automatically generated from code on 2024-05-25
This reference was automatically generated from code on 2024-05-26


.. _`Media ViewHelper Reference: neos.media:fileTypeIcon`:
Expand Down
2 changes: 1 addition & 1 deletion Neos.Neos/Documentation/References/ViewHelpers/Neos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Neos ViewHelper Reference
#########################

This reference was automatically generated from code on 2024-05-25
This reference was automatically generated from code on 2024-05-26


.. _`Neos ViewHelper Reference: neos:backend.authenticationProviderLabel`:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
TYPO3 Fluid ViewHelper Reference
################################

This reference was automatically generated from code on 2024-05-25
This reference was automatically generated from code on 2024-05-26


.. _`TYPO3 Fluid ViewHelper Reference: f:alias`:
Expand Down
10 changes: 3 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@
"neos/site-kickstarter": "Helps with creating new site packages for Neos.",
"neos/redirecthandler-neosadapter": "Adds automatic redirects for moved/renamed pages"
},
"provide": {
"neos/contentrepositoryregistry-storageclient": "self.version"
},
"scripts": {
"lint:phpcs": "../../bin/phpcs --colors",
"lint:phpcs:fix": "../../bin/phpcbf --colors",
Expand All @@ -115,9 +112,6 @@
"FLOW_CONTEXT=Testing/Behat ../../bin/paratest --debug -v --functional --group parallel --processes 2 --colors --stop-on-failure -c ../../Build/BuildEssentials/PhpUnit/FunctionalTests.xml Neos.ContentRepository.BehavioralTests/Tests/Functional/Feature/WorkspacePublication/WorkspaceWritingDuringPublication.php",
"FLOW_CONTEXT=Testing/Behat ../../bin/paratest --debug -v --functional --group parallel --processes 2 --colors --stop-on-failure -c ../../Build/BuildEssentials/PhpUnit/FunctionalTests.xml Neos.ContentRepository.BehavioralTests/Tests/Functional/Feature/WorkspacePublication/WorkspaceWritingDuringPublication.php"
],
"test:functional": [
"../../bin/phpunit --colors --stop-on-failure -c ../../Build/BuildEssentials/PhpUnit/FunctionalTests.xml Neos.ContentRepository.Core/Tests/Functional"
],
"test:behat-cli": "../../bin/behat -f progress --strict --no-interaction",
"test:behavioral": [
"@test:behat-cli -c Neos.ContentRepository.BehavioralTests/Tests/Behavior/behat.yml.dist",
Expand All @@ -139,7 +133,6 @@
],
"test": [
"@test:unit",
"@test:functional",
"@test:behavioral",
"@test:parallel"
],
Expand Down Expand Up @@ -245,6 +238,9 @@
"manage-resources": true
}
},
"provide": {
"neos/contentrepositoryregistry-storageclient": "self.version"
},
"autoload-dev": {
"psr-4": {
"Neos\\ContentGraph\\PostgreSQLAdapter\\Tests\\": [
Expand Down

0 comments on commit 96e3fb4

Please sign in to comment.