Commit cb38e7e6 authored by Ludwig Ruderstaller's avatar Ludwig Ruderstaller

Symfony 4.x Version

parent 08e9cd94
Pipeline #13102 failed with stage
in 29 seconds
......@@ -19,3 +19,10 @@
!var/SymfonyRequirements.php
/vendor/
/public/bundles/
###> symfony/framework-bundle ###
.env
/public/bundles/
/var/
/vendor/
###< symfony/framework-bundle ###
......@@ -13,27 +13,34 @@
"App\\Tests\\": "tests/",
"App\\Context\\": "features/contexts/",
"": "bundles/"
},
"files": [ "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php" ]
}
},
"require": {
"php": "^7.1.3",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/orm": "^2.5",
"incenteev/composer-parameter-handler": "^2.0",
"sensio/distribution-bundle": "^5.0.19",
"sensio/framework-extra-bundle": "^3.0.2",
"symfony/monolog-bundle": "^3.1.0",
"symfony/polyfill-apcu": "^1.0",
"symfony/swiftmailer-bundle": "^3.0.0",
"symfony/symfony": "3.4.x-dev",
"twig/twig": "^2.0",
"cwd/common-bundle": "^0.4",
"cwd/fancygrid-bundle": "^1.0.1",
"white-october/pagerfanta-bundle": "~1.1",
"ext-iconv": "*",
"avanzu/admin-theme-bundle": "dev-master#c0ff9dd38626778e3a7ac757a837677cb21e0e0c",
"friendsofsymfony/user-bundle": "~2.0",
"stof/doctrine-extensions-bundle": "^1.2"
"cwd/common-bundle": "^0.5",
"cwd/fancygrid-bundle": "^1.0.1",
"doctrine/doctrine-bundle": "^1.8",
"doctrine/doctrine-migrations-bundle": "^1.3",
"friendsofsymfony/user-bundle": "~2.1@dev",
"sensio/framework-extra-bundle": "^5.1",
"stof/doctrine-extensions-bundle": "^1.3@dev",
"symfony/asset": "^4.0",
"symfony/console": "^4.0",
"symfony/expression-language": "^4.0",
"symfony/flex": "^1.0",
"symfony/framework-bundle": "^4.0",
"symfony/lts": "^4@dev",
"symfony/monolog-bundle": "^3.1",
"symfony/security-bundle": "^4.0",
"symfony/serializer": "^4.0",
"symfony/swiftmailer-bundle": "^3.1",
"symfony/templating": "^4.0",
"symfony/translation": "^4.0",
"symfony/yaml": "^4.0",
"twig/twig": "^2.0",
"white-october/pagerfanta-bundle": "~1.1"
},
"require-dev": {
"doctrine/data-fixtures": "^1.2",
......@@ -41,44 +48,37 @@
"behat/mink-extension": "^2.2",
"behat/mink-goutte-driver": "^1.2",
"behat/symfony2-extension": "~2.1",
"cwd/generator-bundle": "^0.3",
"friendsofphp/php-cs-fixer": "^2.6",
"cwd/generator-bundle": "^0.4",
"friendsofphp/php-cs-fixer": "^2.9",
"phpunit/phpunit": "~5.7",
"sensio/generator-bundle": "^3.0",
"symfony/dotenv": "^3.3",
"symfony/phpunit-bridge": "^3.3"
"symfony/phpunit-bridge": "^3.3",
"symfony/debug-pack": "^1.0",
"symfony/dotenv": "^4.0",
"symfony/thanks": "^1.0"
},
"replace": {
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"symfony-scripts": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@symfony-scripts"
"@auto-scripts"
],
"post-update-cmd": [
"@symfony-scripts"
],
"post-create-project-cmd": [
"cp .env.dist .env"
"@auto-scripts"
]
},
"config": {
"preferred-install": {
"cwd/*": "source",
"*": "dist"
},
"sort-packages": true
},
"extra": {
"symfony-app-dir": "app",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
"symfony-web-dir": "public",
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative"
}
}
This diff is collapsed.
<?php
return [
'Symfony\Bundle\FrameworkBundle\FrameworkBundle' => ['all' => true],
'Symfony\Bundle\WebProfilerBundle\WebProfilerBundle' => ['dev' => true, 'test' => true],
'Symfony\Bundle\TwigBundle\TwigBundle' => ['all' => true],
'Symfony\Bundle\MonologBundle\MonologBundle' => ['all' => true],
'Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle' => ['all' => true],
'Doctrine\Bundle\DoctrineBundle\DoctrineBundle' => ['all' => true],
'Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle' => ['all' => true],
'Symfony\Bundle\SecurityBundle\SecurityBundle' => ['all' => true],
'Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle' => ['all' => true],
'Symfony\Bundle\DebugBundle\DebugBundle' => ['dev' => true, 'test' => true],
'Sensio\Bundle\DistributionBundle\SensioDistributionBundle' => ['dev' => true, 'test' => true],
'Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle' => ['dev' => true],
'Avanzu\AdminThemeBundle\AvanzuAdminThemeBundle' => ['all' => true],
'FOS\UserBundle\FOSUserBundle' => ['all' => true],
'WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle' => ['all' => true],
'Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle' => ['all' => true],
'Cwd\CommonBundle\CwdCommonBundle' => ['all' => true],
'Cwd\FancyGridBundle\CwdFancyGridBundle' => ['all' => true],
'Cwd\GeneratorBundle\CwdGeneratorBundle' => ['dev' => true],
];
\ No newline at end of file
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true],
Avanzu\AdminThemeBundle\AvanzuAdminThemeBundle::class => ['all' => true],
FOS\UserBundle\FOSUserBundle::class => ['all' => true],
WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle::class => ['all' => true],
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
Cwd\CommonBundle\CwdCommonBundle::class => ['all' => true],
Cwd\FancyGridBundle\CwdFancyGridBundle::class => ['all' => true],
Cwd\GeneratorBundle\CwdGeneratorBundle::class => ['dev' => true],
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
];
services:
EasyCorp\EasyLog\EasyLogHandler:
public: false
arguments: ['%kernel.logs_dir%/%kernel.environment%.log']
#// FIXME: How to add this configuration automatically without messing up with the monolog configuration?
#monolog:
# handlers:
# buffered:
# type: buffer
# handler: easylog
# channels: ['!event']
# level: debug
# easylog:
# type: service
# id: EasyCorp\EasyLog\EasyLogHandler
doctrine_migrations:
dir_name: '%kernel.project_dir%/src/Migrations'
# namespace is arbitrary but should be different from App\Migrations
# as migrations classes should NOT be autoloaded
namespace: DoctrineMigrations
......@@ -40,6 +40,7 @@ security:
security: true
anonymous: true
switch_user: true
logout_on_user_change: true
access_control:
# frontend login
......
......@@ -36,9 +36,4 @@ services:
- "@security.token_storage"
tags:
- { name: kernel.event_listener, event: theme.navbar_user, method: onShowUser }
App\Infrastructure\Web\EventListener\User\ShowUserListener:
arguments:
- "@security.token_storage"
tags:
- { name: kernel.event_listener, event: theme.sidebar_user, method: onShowuser }
version: '2'
services:
app:
image: busybox
volumes:
- /dev/shm:/dev/shm
- .:/var/www/app
tty: true
user: "$USERID"
mysql:
image: mysql:5.7
volumes:
- .:/var/www/app
- /var/lib/mysql
environment:
MYSQL_PASSWORD: dev
MYSQL_USER: dev
MYSQL_DATABASE: project
MYSQL_ALLOW_EMPTY_PASSWORD: 1
php:
image: dockerhub.cwd.at/docker/php/fpm-xdebug:7.2
working_dir: /var/www/app
user: "$USERID"
volumes_from:
- app
environment:
PHP_XDEBUG_ENABLED: 1
PHP_IDE_CONFIG: serverName=docker.local
XDEBUG_CONFIG: remote_host=$XDEBUG_CALLBACK_HOST remote_port=9000 remote_connect_back=0
apache:
image: httpd:2.4
volumes:
- .docker/apache/apache2.conf:/usr/local/apache2/conf/httpd.conf:ro
- .:/var/www/app
ports:
- 8400:80
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
links:
- mysql
environment:
PMA_HOST: mysql
PMA_USER: dev
PMA_PASSWORD: dev
ports:
- 8401:80
......@@ -10,6 +10,13 @@
<php>
<ini name="error_reporting" value="-1" />
<server name="KERNEL_CLASS" value="AppKernel" />
<!-- ###+ symfony/framework-bundle ### -->
<env name="APP_ENV" value="dev"/>
<env name="APP_SECRET" value="c576cfe685af6045e9f0e79e303cf62f"/>
<!-- env name="TRUSTED_PROXIES" value="127.0.0.1,127.0.0.2" -->
<!-- env name="TRUSTED_HOSTS" value="localhost,example.com" -->
<!-- ###- symfony/framework-bundle ### -->
</php>
<testsuites>
......
......@@ -13,7 +13,7 @@ declare(strict_types=1);
namespace App\Domain\User;
use Cwd\CommonBundle\Doctrine\Traits\Timestampable;
use App\Infrastructure\Doctrine\TimestampableTrait;
use FOS\UserBundle\Model\User as FOSUser;
use Symfony\Component\Validator\Constraints as Assert;
......@@ -22,7 +22,7 @@ use Symfony\Component\Validator\Constraints as Assert;
*/
class User extends FOSUser implements UserInterface
{
use Timestampable;
use TimestampableTrait;
protected $id;
......
<?php
namespace App\Infrastructure\Doctrine;
trait TimestampableTrait
{
/**
* @var \Datetime|null
*/
private $updatedAt;
/**
* @var \Datetime|null
*/
private $createdAt;
/**
* @return \DateTime
*/
public function getCreatedAt() : ?\DateTime
{
return $this->createdAt;
}
/**
* @param \DateTime|null $createdAt
*
* @return $this
*/
public function setCreatedAt(?\DateTime $createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* @return \DateTime|null
*/
public function getUpdatedAt() : ?\DateTime
{
return $this->updatedAt;
}
/**
* @param \DateTime $updatedAt
*
* @return $this
*/
public function setUpdatedAt(?\DateTime $updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
}
\ No newline at end of file
{
"doctrine/doctrine-migrations-bundle": {
"version": "1.2",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.2",
"ref": "c1431086fec31f17fbcfe6d6d7e92059458facc1"
}
},
"doctrine/migrations": {
"version": "v1.6.2"
},
"easycorp/easy-log-handler": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.0",
"ref": "70062abc2cd58794d2a90274502f81b55cd9951b"
}
},
"ocramius/proxy-manager": {
"version": "2.2.0"
},
"symfony/asset": {
"version": "v4.0.2"
},
"symfony/browser-kit": {
"version": "v3.4.2"
},
"symfony/cache": {
"version": "v4.0.2"
},
"symfony/class-loader": {
"version": "v3.4.2"
},
"symfony/config": {
"version": "v4.0.2"
},
"symfony/console": {
"version": "3.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "9f94d3ea453cd8a3b95db7f82592d7344fe3a76a"
}
},
"symfony/css-selector": {
"version": "v3.4.2"
},
"symfony/debug": {
"version": "v4.0.2"
},
"symfony/debug-bundle": {
"version": "3.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "71d29aaf710fd59cd3abff2b1ade907ed73103c6"
}
},
"symfony/debug-pack": {
"version": "v1.0.4"
},
"symfony/dependency-injection": {
"version": "v4.0.2"
},
"symfony/doctrine-bridge": {
"version": "v4.0.2"
},
"symfony/dom-crawler": {
"version": "v3.4.2"
},
"symfony/dotenv": {
"version": "v4.0.2"
},
"symfony/event-dispatcher": {
"version": "v4.0.2"
},
"symfony/expression-language": {
"version": "v4.0.2"
},
"symfony/filesystem": {
"version": "v4.0.2"
},
"symfony/finder": {
"version": "v4.0.2"
},
"symfony/flex": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.0",
"ref": "cc1afd81841db36fbef982fe56b48ade6716fac4"
}
},
"symfony/form": {
"version": "v4.0.2"
},
"symfony/framework-bundle": {
"version": "3.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "18f6fdceb63737d991efbb37ae9619a6f6c978c8"
}
},
"symfony/http-foundation": {
"version": "v4.0.2"
},
"symfony/http-kernel": {
"version": "v4.0.2"
},
"symfony/inflector": {
"version": "v4.0.2"
},
"symfony/intl": {
"version": "v4.0.2"
},
"symfony/lts": {
"version": "4-dev"
},
"symfony/monolog-bridge": {
"version": "v4.0.2"
},
"symfony/options-resolver": {
"version": "v4.0.2"
},
"symfony/process": {
"version": "v4.0.2"
},
"symfony/profiler-pack": {
"version": "v1.0.3"
},
"symfony/property-access": {
"version": "v4.0.2"
},
"symfony/routing": {
"version": "4.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "4.0",
"ref": "cda8b550123383d25827705d05a42acf6819fe4e"
}
},
"symfony/security": {
"version": "v4.0.2"
},
"symfony/security-bundle": {
"version": "3.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "85834af1496735f28d831489d12ab1921a875e0d"
}
},
"symfony/serializer": {
"version": "v4.0.2"
},
"symfony/stopwatch": {
"version": "v4.0.2"
},
"symfony/templating": {
"version": "v4.0.2"
},
"symfony/thanks": {
"version": "v1.0.1"
},
"symfony/translation": {
"version": "3.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "6bcd6c570c017ea6ae5a7a6a027c929fd3542cd8"
}
},
"symfony/twig-bridge": {
"version": "v4.0.2"
},
"symfony/twig-bundle": {
"version": "3.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "f75ac166398e107796ca94cc57fa1edaa06ec47f"
}
},
"symfony/validator": {
"version": "v4.0.2"
},
"symfony/var-dumper": {
"version": "v4.0.2"
},
"symfony/web-profiler-bundle": {
"version": "3.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "6bdfa1a95f6b2e677ab985cd1af2eae35d62e0f6"
}
},
"symfony/yaml": {
"version": "v4.0.2"
},
"zendframework/zend-code": {
"version": "3.3.0"
},
"zendframework/zend-eventmanager": {
"version": "3.2.0"
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
{% block stylesheets %}{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment