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
jekuaitk
left a comment
There was a problem hiding this comment.
Looks very good. Needs some cleanup after various debugging and the intense makeover/upgrade.
| "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.
Is this verification of email bundle used?
| 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.
See comment regarding verify email bundle in composer.json
| services: | ||
| phpfpm: | ||
| image: itkdev/php7.4-fpm:alpine | ||
| image: itkdev/php8.1-fpm:alpine |
There was a problem hiding this comment.
We could probably consider 8.3!
| class Version20180424124131 extends AbstractMigration | ||
| { | ||
| public function up(Schema $schema) | ||
| public function up(Schema $schema):void |
There was a problem hiding this comment.
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.
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'); |
| use Doctrine\DBAL\Types\Type; | ||
| use Doctrine\ORM\EntityManagerInterface; | ||
|
|
||
| class SystemImporter extends BaseImporter |
There was a problem hiding this comment.
Remove extra blank lines in this file.
| // /** | ||
| // * @var \DateTime | ||
| // * @ORM\Column(type="datetime", nullable=true) | ||
| // */ | ||
|
|
There was a problem hiding this comment.
| // /** | |
| // * @var \DateTime | |
| // * @ORM\Column(type="datetime", nullable=true) | |
| // */ |
|
|
||
|
|
| {# <a href="{{ easyadmin_path('Answer', 'edit', { id: answer.id }) }}">#} | ||
|
|
||
|
|
There was a problem hiding this comment.
| {# <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.
| {% 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.
@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