Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.
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
8 changes: 5 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

FILES=$(git diff --name-only --cached | grep -E '\.(php)$' | tr '\n' ' ')
PHP_CS_FIXER=vendor/bin/php-cs-fixer

FILES=$(git diff --name-only --cached --diff-filter=d | grep -E '\.(php)$' | tr '\n' ' ')
if [ -z "$FILES" ]
then
echo "php files not found."
else
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php ${FILES}
elif [ -f "$PHP_CS_FIXER" ]; then
$PHP_CS_FIXER fix --config=.php-cs-fixer.dist.php ${FILES}
git add ${FILES}
fi
2 changes: 2 additions & 0 deletions bin/forest
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';

use ForestAdmin\SymfonyForestAdmin\Command\InstallCommand;
use ForestAdmin\SymfonyForestAdmin\Command\SendApimapCommand;
use Symfony\Component\Console\Application;

$app = new Application();
$app->add(new SendApimapCommand());
$app->add(new InstallCommand());
$app->run();
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "forestadmin/symfony-forestadmin",
"version": "1.0.0-beta.1",
"minimum-stability": "dev",
"minimum-stability": "stable",
"description": "Forest Admin provides an off-the-shelf administration panel based on a highly-extensible API plugged into your application.",
"type": "symfony-bundle",
"require": {
"php": ">=8.0",
"asm89/stack-cors": "^2.1",
"doctrine/orm": "^2.12",
"forestadmin/agent-php": "^1.0.0",
"symfony/console": "6.0.x-dev",
"symfony/framework-bundle": "^6.0"
"forestadmin/agent-php": "^1.0.0.beta",
"symfony/framework-bundle": "^6.0",
"symfony/console": "^6.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
Expand Down
Loading