Skip to content

Commit 5166f2c

Browse files
committed
TASK: Prevent problems caused by Flow Proxy classres
1 parent 4879ff4 commit 5166f2c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Classes/Domain/ValueObject/HslaColor.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
namespace PackageFactory\ColorHelper\Domain\ValueObject;
66

7+
use Neos\Flow\Annotations as Flow;
8+
9+
/**
10+
* @Flow\Proxy(false)
11+
*/
712
class HslaColor extends AbstractColor implements ColorInterface
813
{
914
/**

Classes/Domain/ValueObject/RgbaColor.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44

55
namespace PackageFactory\ColorHelper\Domain\ValueObject;
66

7-
use mysql_xdevapi\Exception;
7+
use Neos\Flow\Annotations as Flow;
88

9+
/**
10+
* @Flow\Proxy(false)
11+
*/
912
class RgbaColor extends AbstractColor implements ColorInterface
1013
{
1114
/**
@@ -125,7 +128,7 @@ public function asHsla(): HslaColor
125128
case $g: $h = ($b - $r) / $d + 2; break;
126129
case $b: $h = ($r - $g) / $d + 4; break;
127130
default:
128-
throw new Exception('this should never happen');
131+
throw new \Exception('this should never happen');
129132
}
130133

131134
$h /= 6;

0 commit comments

Comments
 (0)