Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Remove profiler integration #82

Merged
merged 3 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -48,7 +47,4 @@
$services->alias(DriverInterface::class, 'neo4j.driver');
$services->alias(SessionInterface::class, 'neo4j.session');
$services->alias(TransactionInterface::class, 'neo4j.transaction');

$services->set('neo4j.subscriber', Neo4jProfileListener::class)
->tag('kernel.event_subscriber');
};
3 changes: 0 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<testsuites>
<testsuite name="Unit tests">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="Functional tests">
<directory suffix="Test.php">./tests/Functional</directory>
</testsuite>
Expand Down
83 changes: 0 additions & 83 deletions src/Collector/Neo4jDataCollector.php

This file was deleted.

56 changes: 0 additions & 56 deletions src/Collector/Twig/Neo4jResultExtension.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/DependencyInjection/Neo4jExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@

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;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
use Symfony\Component\DependencyInjection\Reference;
Expand Down Expand Up @@ -52,20 +49,6 @@ public function load(array $configs, ContainerBuilder $container): ContainerBuil
}
}

if (0 !== count($enabledProfiles)) {
$container->setDefinition('neo4j.data_collector', (new Definition(Neo4jDataCollector::class))
->setAutowired(true)
->addTag('data_collector')
);

$container->setAlias(Neo4jProfileListener::class, 'neo4j.subscriber');

$container->setDefinition('neo4j.subscriber', (new Definition(Neo4jProfileListener::class))
->setArgument(0, $enabledProfiles)
->addTag('kernel.event_subscriber')
);
}

return $container;
}

Expand Down
78 changes: 0 additions & 78 deletions src/EventListener/Neo4jProfileListener.php

This file was deleted.

65 changes: 0 additions & 65 deletions tests/Unit/Collector/Twig/Neo4jResultExtensionTest.php

This file was deleted.

Loading
Loading