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

Issue #449: Removed dot-debugbar integration #450

Merged
merged 1 commit into from
Jul 30, 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
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ The next question is:

## Configuration - First Run

- duplicate `config/autoload/debugbar.local.php.dist` as `config/autoload/debugbar.local.php`
- duplicate `config/autoload/development.local.php.dist` as `config/autoload/development.local.php`
- duplicate `config/autoload/local.php.dist` as `config/autoload/local.php`
- duplicate `config/autoload/mail.local.php.dist` as `config/autoload/mail.local.php`
Expand Down Expand Up @@ -173,22 +172,6 @@ composer development-enable

- If not already done, remove the `.dist` extension from `config/autoload/development.global.php.dist`.

## Using DebugBar

DotKernel comes with its own DebugBar already installed and configured. It was enabled when you cloned the config file `config/autoload/debugbar.local.php.dist` as `config/autoload/debugbar.local.php`. You can disable the tool by going into its config file `config/autoload/debugbar.local.php` and changing

```php
'enabled' => true
```

to

```php
'enabled' => false
```

More about DebugBar [here](https://github.com/dotkernel/dot-debugbar).

## NPM Commands

To install dependencies into the `node_modules` directory run this command.
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"dotkernel/dot-authorization": "^3.4.1",
"dotkernel/dot-controller": "^3.4.3",
"dotkernel/dot-data-fixtures": "^1.1.3",
"dotkernel/dot-debugbar": "^1.1.5",
"dotkernel/dot-errorhandler": "^3.3.2",
"dotkernel/dot-flashmessenger": "^3.4.2",
"dotkernel/dot-mail": "~3.4 || ^4.1.1",
Expand Down
37 changes: 0 additions & 37 deletions config/autoload/debugbar.local.php.dist

This file was deleted.

2 changes: 0 additions & 2 deletions config/autoload/templates.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

declare(strict_types=1);

use Dot\DebugBar\Extension\DebugBarExtension;
use Dot\Twig\Extension\DateExtension;
use Dot\Twig\Extension\TranslationExtension;
use Laminas\ServiceManager\Factory\InvokableFactory;
Expand Down Expand Up @@ -33,7 +32,6 @@
'extensions' => [
DateExtension::class,
TranslationExtension::class,
DebugBarExtension::class,
],
'optimizations' => -1,
'runtime_loaders' => [],
Expand Down
1 change: 0 additions & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class_exists(\Mezzio\Swoole\ConfigProvider::class)

// DotKernel packages
\Dot\Session\ConfigProvider::class,
\Dot\DebugBar\ConfigProvider::class,
\Dot\Mail\ConfigProvider::class,
\Laminas\Form\ConfigProvider::class,
\Dot\Log\ConfigProvider::class,
Expand Down
2 changes: 0 additions & 2 deletions config/pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

declare(strict_types=1);

use Dot\DebugBar\Middleware\DebugBarMiddleware;
use Dot\ErrorHandler\ErrorHandlerInterface;
use Dot\Rbac\Guard\Middleware\ForbiddenHandler;
use Dot\Rbac\Guard\Middleware\RbacGuardMiddleware;
Expand All @@ -27,7 +26,6 @@
return function (Application $app, MiddlewareFactory $factory, ContainerInterface $container): void {
// The error handler should be the first (most outer) middleware to catch
// all Exceptions.
$app->pipe(DebugBarMiddleware::class);
$app->pipe(ErrorHandlerInterface::class);
$app->pipe(SessionMiddleware::class);
$app->pipe(ServerUrlMiddleware::class);
Expand Down
Loading
Loading