Skip to content
Open
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
10 changes: 6 additions & 4 deletions .ddev/commands/web/build-assets
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

echo 'Deprecation notice: The "ddev build-assets" command is deprecated'
echo 'Please use "ddev make build" and "ddev make build-assets" instead'
echo ""

cd ../easyadminbundle
yarn install
yarn encore production
php ./src/Resources/bin/fix-assets-manifest-file.php
../html/bin/console assets:install --symlink
make build
make build-assets
4 changes: 4 additions & 0 deletions .ddev/commands/web/make
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cd ../easyadminbundle
make $@
7 changes: 5 additions & 2 deletions .ddev/commands/web/run-tests
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

echo 'Deprecation notice: The "ddev run-tests" command is deprecated'
echo 'Please use "ddev make tests" instead'
echo ''

cd ../easyadminbundle
composer update
vendor/bin/simple-phpunit -v
make tests
4 changes: 3 additions & 1 deletion .ddev/commands/web/setup
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Installing Symfony Framework
composer create-project symfony/skeleton:"7.2.*" -n
composer create-project symfony/skeleton:"8.0.*" -n
mv -f ./skeleton/* ./
mv -f ./skeleton/.env ./
mv -f ./skeleton/.env.dev ./
Expand Down Expand Up @@ -30,6 +30,8 @@ ln -s ../../../easyadminbundle/.ddev/example/config/routes/easyadmin.yaml config
echo 'DATABASE_URL="mysql://db:db@db:3306/db?serverVersion=10.11.0-MariaDB&charset=utf8mb4"' >> .env.local
./bin/console doc:sch:up --force

bin/console assets:install --symlink

# Clear Cache
sleep 2
./bin/console c:c
13 changes: 7 additions & 6 deletions .ddev/config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: easy-admin-bundle
type: php
docroot: public
name: "easy-admin-bundle"
type: "php"
docroot: "public"
no_project_mount: true
php_version: "8.3"
webserver_type: apache-fpm
php_version: "8.5"
webserver_type: "apache-fpm"
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
database:
type: mariadb
type: "mariadb"
version: "10.11"
use_dns_when_possible: true
composer_version: "2"
web_environment: []
webimage_extra_packages: ["build-essential"]
nodejs_version: "22"
timezone: "Europe/Berlin"
6 changes: 2 additions & 4 deletions .ddev/example/Controller/Admin/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem;
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractDashboardController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;

#[AdminDashboard]
#[AdminDashboard(routePath: '/', routeName: 'admin')]
class DashboardController extends AbstractDashboardController
{
#[Route('/', name: 'admin')]
public function index(): Response
{
return $this->render('@EasyAdmin/page/content.html.twig');
return $this->render('@EasyAdmin/layout.html.twig');
}

public function configureDashboard(): Dashboard
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ Symfony Framework project providing example entities and CRUD Controllers.
* Checkout the EasyAdmin git repository and switch in the project directory
* Perform `ddev setup` which starts and provisions the web container
* EasyAdmin is available under the URL: https://easy-admin-bundle.ddev.site
* To (re-)build frontend assets perform `ddev build-assets`
* To run unit tests perform `ddev run-tests`
* With `ddev make <target>` you can execute predefined tasks from [`Makefile`](./Makefile). Examples:
* To update dependencies (Composer and Yarn): `ddev make build`
* To (re-)build frontend assets perform `ddev make build-assets`
* To run unit tests perform `ddev make tests`

## Resources

Expand Down
Loading