Мало кто знает, но что бы работал migration:diff вам не нужно ставить ORM.
Что бы это работало объявим простой сервис:
<?php| #!/bin/bash | |
| # # For flat structure (all files in one directory): | |
| # ./convert_to_jxl.sh /path/to/source/folder /path/to/destination flat | |
| # # For maintaining directory structure: | |
| # ./convert_to_jxl.sh /path/to/source/folder /path/to/destination structured | |
| # Check if correct number of arguments provided | |
| if [ "$#" -ne 3 ]; then |
| <?php | |
| // GitLab API URL | |
| $api_url = 'https://gitlab.com/api/graphql'; | |
| // Your GitLab personal access token | |
| $access_token = 'glpat-qsdfsdfsdfsdf'; | |
| // Your GitLab group's full path | |
| $group_path = 'gotphoto'; |
| FROM nginx:alpine AS builder | |
| # nginx:alpine contains NGINX_VERSION environment variable, like so: | |
| # ENV NGINX_VERSION 1.15.0 | |
| # Our NCHAN version | |
| ENV NCHAN_VERSION 1.1.15 | |
| # Download sources | |
| RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \ |
| <?php | |
| function file_get_contents(string $pathname): string | |
| { | |
| $result = ''; | |
| $fp = fopen($pathname, 'rb'); | |
| while (!feof($fp)) { | |
| $chunk = 1024; | |
| Fiber::getCurrent() && ($chunk = (Fiber::suspend() ?: 1024)); |
| <?php | |
| declare(strict_types=1); | |
| namespace App\Notification; | |
| use Doctrine\DBAL\Connection; | |
| use Doctrine\DBAL\Platforms\AbstractPlatform; | |
| use Doctrine\DBAL\Types\Type; | |
| use JetBrains\PhpStorm\Immutable; |
| <?php declare(strict_types=1); | |
| final class DoctrineSagaPersistence implements SagaPersistence | |
| { | |
| private ManagerRegistry $mr; | |
| private SagaFinding $sagaFinding; | |
| public function __construct(ManagerRegistry $mr, SagaFinding $sagaFinding) | |
| { | |
| $this->mr = $mr; | |
| $this->sagaFinding = $sagaFinding; |
| <?php declare(strict_types=1); | |
| use Doctrine\Common\EventManager; | |
| use Doctrine\DBAL\Configuration; | |
| use Doctrine\DBAL\Connection; | |
| use Doctrine\DBAL\Driver; | |
| class ReconnectConnection extends Connection | |
| { | |
| /** @var int */ |
Here is the list of talks that I found most useful to me.
Нагло своровано у angular styleguide и адаптировано под Symfony
Структура проекта должны быть интуитивно понятна новому человеку в проекте. Для этого можно воспользоваться принципами LIFT. Согласно им структура проекта должна позволять