-
Notifications
You must be signed in to change notification settings - Fork 0
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
feature/ITSTYR 81 symfony6upgrade #25
base: develop
Are you sure you want to change the base?
Conversation
Onkel-Martin
commented
Mar 9, 2023
- updated readme open statment
- README updated for composer v.2, updated upload command command
- made a minor change
- ITSTYR-81 / 1. Installed new symfony project / copied new docker files over / FIRST COMMIT
- testing mermaid on git
- added a Flowchart over the entities
- updatet readme with flowchart text
- updatet readme with flowchart text 2
- ITSTYR-81 added makerbundle
…s over / FIRST COMMIT
…ys in Category, Theme
… to be deleted later
… now checking auth
… updated the smiley twig template
…asyadmin... since the documentation states infinit loop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good. Needs some cleanup after various debugging and the intense makeover/upgrade.
composer.json
Outdated
"symfony/security-bundle": "6.4.*", | ||
"symfony/validator": "6.4.*", | ||
"symfony/yaml": "6.4.*", | ||
"symfonycasts/verify-email-bundle": "^1.17" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this verification of email bundle used?
config/bundles.php
Outdated
Knp\Bundle\PaginatorBundle\KnpPaginatorBundle::class => ['all' => true], | ||
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true], | ||
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true], | ||
SymfonyCasts\Bundle\VerifyEmail\SymfonyCastsVerifyEmailBundle::class => ['all' => true], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment regarding verify email bundle in composer.json
@@ -10,7 +8,7 @@ networks: | |||
|
|||
services: | |||
phpfpm: | |||
image: itkdev/php7.4-fpm:alpine | |||
image: itkdev/php8.1-fpm:alpine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could probably consider 8.3!
migrations/Version20180424124131.php
Outdated
|
||
/** | ||
* Auto-generated Migration: Please modify to your needs! | ||
*/ | ||
class Version20180424124131 extends AbstractMigration | ||
{ | ||
public function up(Schema $schema) | ||
public function up(Schema $schema):void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose our coding standards don't check migration files, but if we change old migration files we should probably modify them to be inline with how newly generated ones look. That is a space in between the colon and the return type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our coding standards should check all code we write, i.e. also the migrations.
public function up(Schema $schema): void | ||
{ | ||
// this up() migration is auto-generated, please modify it to your needs | ||
$this->addSql('CREATE TABLE test_user (id INT AUTO_INCREMENT NOT NULL, username VARCHAR(180) NOT NULL, roles JSON NOT NULL COMMENT \'(DC2Type:json)\', password VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_IDENTIFIER_USERNAME (username), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is test_user
?
@@ -7,13 +7,12 @@ | |||
use App\Repository\ReportRepository; | |||
use App\Repository\SelfServiceAvailableFromItemRepository; | |||
use App\Repository\SystemRepository; | |||
use Doctrine\DBAL\Types\Type; | |||
use Doctrine\ORM\EntityManagerInterface; | |||
|
|||
class SystemImporter extends BaseImporter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra blank lines in this file.
src/Traits/ArchivableEntity.php
Outdated
// /** | ||
// * @var \DateTime | ||
// * @ORM\Column(type="datetime", nullable=true) | ||
// */ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// /** | |
// * @var \DateTime | |
// * @ORM\Column(type="datetime", nullable=true) | |
// */ |
src/Traits/ArchivableEntity.php
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{# <a href="{{ easyadmin_path('Answer', 'edit', { id: answer.id }) }}">#} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{# <a href="{{ easyadmin_path('Answer', 'edit', { id: answer.id }) }}">#} |
{% block main %} | ||
|
||
|
||
|
||
<div class="container-fluid"> | ||
|
||
|
||
<h1>{{ 'export.headline' | trans }}</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% block main %} | |
<div class="container-fluid"> | |
<h1>{{ 'export.headline' | trans }}</h1> | |
{% block main %} | |
<div class="container-fluid"> | |
<h1>{{ 'export.headline' | trans }}</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Mr-Martin-Kristiansen, consider adding https://github.com/VincentLanglet/Twig-CS-Fixer as a development dependency to clean up the Twig templates. We use that tool in several projects, e.g. https://github.com/itk-dev/aapodwalk_api/ (see also https://github.com/search?q=org%3Aitk-dev%20vincentlanglet%2Ftwig-cs-fixer&type=code).
…dded an error catch to controllers