diff --git a/config/services.php b/config/services.php index 2e78d3a..957a43f 100644 --- a/config/services.php +++ b/config/services.php @@ -8,7 +8,6 @@ use Laudis\Neo4j\Contracts\TransactionInterface; use Neo4j\Neo4jBundle\ClientFactory; use Neo4j\Neo4jBundle\EventHandler; -use Neo4j\Neo4jBundle\EventListener\Neo4jProfileListener; use Neo4j\Neo4jBundle\SymfonyClient; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; diff --git a/src/DependencyInjection/Neo4jExtension.php b/src/DependencyInjection/Neo4jExtension.php index 5283723..bf491ec 100644 --- a/src/DependencyInjection/Neo4jExtension.php +++ b/src/DependencyInjection/Neo4jExtension.php @@ -4,8 +4,6 @@ namespace Neo4j\Neo4jBundle\DependencyInjection; -use Neo4j\Neo4jBundle\Collector\Neo4jDataCollector; -use Neo4j\Neo4jBundle\EventListener\Neo4jProfileListener; use Psr\Http\Client\ClientInterface; use Psr\Http\Message\RequestFactoryInterface; use Psr\Http\Message\StreamFactoryInterface; diff --git a/src/Event/FailureEvent.php b/src/Event/FailureEvent.php new file mode 100644 index 0000000..2981193 --- /dev/null +++ b/src/Event/FailureEvent.php @@ -0,0 +1,45 @@ +exception; + } + + public function disableException(): void + { + $this->shouldThrowException = false; + } + + public function shouldThrowException(): bool + { + return $this->shouldThrowException; + } + + public function getAlias(): ?string + { + return $this->alias; + } + + public function getStatement(): Statement + { + return $this->statement; + } +} diff --git a/src/Event/PostRunEvent.php b/src/Event/PostRunEvent.php new file mode 100644 index 0000000..b0bf84b --- /dev/null +++ b/src/Event/PostRunEvent.php @@ -0,0 +1,29 @@ +result; + } + + public function getAlias(): ?string + { + return $this->alias; + } +} diff --git a/src/Event/PreRunEvent.php b/src/Event/PreRunEvent.php new file mode 100644 index 0000000..6ab3f4d --- /dev/null +++ b/src/Event/PreRunEvent.php @@ -0,0 +1,27 @@ +statement; + } + + public function getAlias(): ?string + { + return $this->alias; + } +}