Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Commit

Permalink
Update to Symfony 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
IonBazan authored and javiereguiluz committed May 30, 2020
1 parent c729367 commit 658e5ed
Show file tree
Hide file tree
Showing 34 changed files with 2,031 additions and 1,668 deletions.
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


###> symfony/phpunit-bridge ###
.phpunit
.phpunit.result.cache
/phpunit.xml
###< symfony/phpunit-bridge ###

Expand All @@ -12,7 +12,3 @@
/var/
/vendor/
###< symfony/framework-bundle ###

###> symfony/web-server-bundle ###
.web-server-pid
###< symfony/web-server-bundle ###
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
language: php

php:
- 7.1
- 7.2
- 7.3
- 7.4

sudo: false

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ simple admin generator for [Symfony][2] applications.
Requirements
------------

* PHP 7.1.3 or higher;
* PHP 7.2.9 or higher;
* PDO-SQLite PHP extension enabled;
* and the [usual Symfony application requirements][3].

Expand All @@ -17,7 +17,7 @@ How to install this project
1. `git clone https://github.com/javiereguiluz/easy-admin-demo`
1. `cd easy-admin-demo/`
1. `composer install`
1. `php bin/console server:run`
1. `symfony server:start`
1. Browse `http://127.0.0.1:8000/admin/`

The project comes with an SQLite sample database, but you can also create your
Expand All @@ -35,7 +35,7 @@ Execute this command to run tests:

```bash
$ easy-admin-demo/
$ ./vendor/bin/simple-phpunit
$ ./bin/phpunit
```

Screenshot
Expand Down
13 changes: 13 additions & 0 deletions bin/phpunit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env php
<?php

if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
exit(1);
}

if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
}

require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
},
"config": {
"platform": {
"php": "7.1.3"
"php": "7.2.9"
},
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"require": {
"php": "^7.1.3",
"php": "^7.2.9",
"ext-pdo_sqlite": "*",
"friendsofsymfony/ckeditor-bundle": "^2.1",
"friendsofsymfony/ckeditor-bundle": "^2.2",
"easycorp/easyadmin-bundle": "^2.1",
"sensio/framework-extra-bundle": "^5.2",
"symfony/asset": "*",
Expand All @@ -44,23 +44,23 @@
"symfony/twig-bundle": "*",
"symfony/validator": "*",
"symfony/yaml": "*",
"vich/uploader-bundle": "1.8.6",
"white-october/pagerfanta-bundle": "^1.0"
"vich/uploader-bundle": "^1.11",
"babdev/pagerfanta-bundle": "^2.0"
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.2",
"symfony/browser-kit": "*",
"symfony/debug-bundle": "*",
"symfony/phpunit-bridge": "*",
"symfony/profiler-pack": "^1.0",
"symfony/var-dumper": "*",
"symfony/web-server-bundle": "*"
"symfony/var-dumper": "*"
},
"scripts": {
"auto-scripts": {
"ckeditor:install": "symfony-cmd",
"assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd",
"cache:clear": "symfony-cmd"
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
Expand All @@ -75,7 +75,7 @@
"extra": {
"symfony": {
"allow-contrib": true,
"require": "4.3.*"
"require": "5.0.*"
}
}
}
Loading

0 comments on commit 658e5ed

Please sign in to comment.