Skip to content

Commit 5e26532

Browse files
authored
Merge pull request #22 from monofone/task-update-flow-50
Task: update implementations to new Flow 5.0
2 parents ac86ed7 + 563719f commit 5e26532

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Classes/Handler/DebugExceptionHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
namespace Networkteam\SentryClient\Handler;
33

4-
use Neos\Flow\Annotations as Flow;
54
use Neos\Flow\Core\Bootstrap;
5+
use Neos\Flow\Error\DebugExceptionHandler as DebugExceptionHandlerBase;
66
use Neos\Flow\ObjectManagement\ObjectManagerInterface;
77
use Networkteam\SentryClient\ErrorHandler;
88

9-
class DebugExceptionHandler extends \Neos\Flow\Error\DebugExceptionHandler
9+
class DebugExceptionHandler extends DebugExceptionHandlerBase
1010
{
1111

1212
/**
@@ -21,7 +21,7 @@ public function echoExceptionWeb($exception)
2121
/**
2222
* {@inheritdoc}
2323
*/
24-
public function echoExceptionCLI($exception)
24+
public function echoExceptionCLI(\Throwable $exception)
2525
{
2626
$this->sendExceptionToSentry($exception);
2727
parent::echoExceptionCLI($exception);

Classes/Handler/ProductionExceptionHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
namespace Networkteam\SentryClient\Handler;
33

4-
use Neos\Flow\Annotations as Flow;
54
use Neos\Flow\Core\Bootstrap;
5+
use Neos\Flow\Error\ProductionExceptionHandler as ProductionExceptionHandlerBase;
66
use Neos\Flow\ObjectManagement\ObjectManagerInterface;
77
use Networkteam\SentryClient\ErrorHandler;
88

9-
class ProductionExceptionHandler extends \Neos\Flow\Error\ProductionExceptionHandler
9+
class ProductionExceptionHandler extends ProductionExceptionHandlerBase
1010
{
1111

1212
/**
@@ -21,7 +21,7 @@ public function echoExceptionWeb($exception)
2121
/**
2222
* {@inheritdoc}
2323
*/
24-
public function echoExceptionCLI($exception)
24+
public function echoExceptionCLI(\Throwable $exception)
2525
{
2626
$this->sendExceptionToSentry($exception);
2727
parent::echoExceptionCLI($exception);

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ There was a failure in the versioning scheme for the client from 1.0.3 on. This
1818

1919
| Flow |SentryClient |
2020
|-----------------|-------------|
21-
|>= 4.0.0 | 4.x |
21+
|>= 5.0.0 | 5.x |
22+
|>= 4.0.0 < 5.0 | 4.x |
2223
|>=2.3.9, >=3.0.3 | 3.x, >1.0.3 |
2324
|<2.3.9, <3.0.3 | 2.x, <1.0.3 |
2425

0 commit comments

Comments
 (0)