From 6cec55b3fe28bc0993c2c9b0920c5570670c964e Mon Sep 17 00:00:00 2001 From: Kendrick Date: Tue, 3 Apr 2018 16:56:36 +0200 Subject: [PATCH 1/4] name fix data-collector_git --- DataCollector/GitDataCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataCollector/GitDataCollector.php b/DataCollector/GitDataCollector.php index 598f03b..beea391 100644 --- a/DataCollector/GitDataCollector.php +++ b/DataCollector/GitDataCollector.php @@ -301,7 +301,7 @@ private function getData($data) public function getName() { - return 'datacollector_git'; + return 'data-collector_git'; } From 33b9b7ce069c8b2d0656875052246a036c3e79a4 Mon Sep 17 00:00:00 2001 From: Gaston Nina Date: Mon, 4 Jun 2018 14:39:42 -0400 Subject: [PATCH 2/4] Update GitDataCollector.php To check any version Symfony in v4.x the main folder is "public" I always rename it as "public_html" to work with shared folders --- DataCollector/GitDataCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataCollector/GitDataCollector.php b/DataCollector/GitDataCollector.php index beea391..4db3bec 100644 --- a/DataCollector/GitDataCollector.php +++ b/DataCollector/GitDataCollector.php @@ -43,7 +43,7 @@ public function collect(Request $request, Response $response, \Exception $except // is there a web directory ? - if ($fs->exists('../web')) { + if ($fs->exists('../web') || $fs->exists('../public_html') || $fs->exists('../public')) { $gitPath = '../.git'; } else { // unit tests From 7aed8d9c82aaffb19a7175a62ba3542a3cac9c71 Mon Sep 17 00:00:00 2001 From: Gaston Nina S Date: Thu, 14 Jun 2018 14:28:11 -0400 Subject: [PATCH 3/4] changing the name --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4664e3e..64ec5e0 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "kendrick/symfony-debug-toolbar-git", + "name": "kendrick/symfony-4-debug-toolbar-git", "type": "symfony-bundle", "description": "Git information into Symfony Debug Toolbar", "keywords": ["symfony","debug","git"], From 31f3f2b907b1b9e0a108b9abcd3531779e800c7d Mon Sep 17 00:00:00 2001 From: Kendrick Date: Tue, 10 Jul 2018 12:26:42 +0200 Subject: [PATCH 4/4] naming --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 64ec5e0..4664e3e 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "kendrick/symfony-4-debug-toolbar-git", + "name": "kendrick/symfony-debug-toolbar-git", "type": "symfony-bundle", "description": "Git information into Symfony Debug Toolbar", "keywords": ["symfony","debug","git"],