+ */
+ public function getRestaurants(): Collection
+ {
+ return $this->restaurants;
+ }
+
+ public function addRestaurant(Restaurants $restaurant): static
+ {
+ if (!$this->restaurants->contains($restaurant)) {
+ $this->restaurants->add($restaurant);
+ $restaurant->setSettlement($this);
+ }
+
+ return $this;
+ }
+
+ public function removeRestaurant(Restaurants $restaurant): static
+ {
+ if ($this->restaurants->removeElement($restaurant)) {
+ // set the owning side to null (unless already changed)
+ if ($restaurant->getSettlement() === $this) {
+ $restaurant->setSettlement(null);
+ }
+ }
+
+ return $this;
+ }
+}
diff --git a/app/src/Entity/Users.php b/app/src/Entity/Users.php
new file mode 100644
index 0000000000000000000000000000000000000000..6c8ef97fc003dec41cc292d315159475d7c1a79b
--- /dev/null
+++ b/app/src/Entity/Users.php
@@ -0,0 +1,117 @@
+id;
+ }
+
+ public function setId(string $id): static
+ {
+ $this->id = $id;
+
+ return $this;
+ }
+
+ public function getName(): ?string
+ {
+ return $this->name;
+ }
+
+ public function setName(string $name): static
+ {
+ $this->name = $name;
+
+ return $this;
+ }
+
+ public function getEmail(): ?string
+ {
+ return $this->email;
+ }
+
+ public function setEmail(string $email): static
+ {
+ $this->email = $email;
+
+ return $this;
+ }
+
+ public function getPhone(): ?string
+ {
+ return $this->phone;
+ }
+
+ public function setPhone(string $phone): static
+ {
+ $this->phone = $phone;
+
+ return $this;
+ }
+
+ public function isMale(): ?bool
+ {
+ return $this->isMale;
+ }
+
+ public function setMale(bool $isMale): static
+ {
+ $this->isMale = $isMale;
+
+ return $this;
+ }
+
+ public function getAddress(): ?string
+ {
+ return $this->address;
+ }
+
+ public function setAddress(string $address): static
+ {
+ $this->address = $address;
+
+ return $this;
+ }
+
+ public function getBirthday(): ?\DateTimeImmutable
+ {
+ return $this->birthday;
+ }
+
+ public function setBirthday(\DateTimeImmutable $birthday): static
+ {
+ $this->birthday = $birthday;
+
+ return $this;
+ }
+}
diff --git a/app/src/Repository/KitchensRepository.php b/app/src/Repository/KitchensRepository.php
new file mode 100644
index 0000000000000000000000000000000000000000..b65972f426471d1569a2e884e83c55a6d4c77f12
--- /dev/null
+++ b/app/src/Repository/KitchensRepository.php
@@ -0,0 +1,48 @@
+
+ *
+ * @method Kitchens|null find($id, $lockMode = null, $lockVersion = null)
+ * @method Kitchens|null findOneBy(array $criteria, array $orderBy = null)
+ * @method Kitchens[] findAll()
+ * @method Kitchens[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
+ */
+class KitchensRepository extends ServiceEntityRepository
+{
+ public function __construct(ManagerRegistry $registry)
+ {
+ parent::__construct($registry, Kitchens::class);
+ }
+
+ // /**
+ // * @return Kitchens[] Returns an array of Kitchens objects
+ // */
+ // public function findByExampleField($value): array
+ // {
+ // return $this->createQueryBuilder('k')
+ // ->andWhere('k.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->orderBy('k.id', 'ASC')
+ // ->setMaxResults(10)
+ // ->getQuery()
+ // ->getResult()
+ // ;
+ // }
+
+ // public function findOneBySomeField($value): ?Kitchens
+ // {
+ // return $this->createQueryBuilder('k')
+ // ->andWhere('k.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->getQuery()
+ // ->getOneOrNullResult()
+ // ;
+ // }
+}
diff --git a/app/src/Repository/NewsCategoriesRepository.php b/app/src/Repository/NewsCategoriesRepository.php
new file mode 100644
index 0000000000000000000000000000000000000000..cb2bf88ccea70122feaa335005456ecac54a0c0a
--- /dev/null
+++ b/app/src/Repository/NewsCategoriesRepository.php
@@ -0,0 +1,48 @@
+
+ *
+ * @method NewsCategories|null find($id, $lockMode = null, $lockVersion = null)
+ * @method NewsCategories|null findOneBy(array $criteria, array $orderBy = null)
+ * @method NewsCategories[] findAll()
+ * @method NewsCategories[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
+ */
+class NewsCategoriesRepository extends ServiceEntityRepository
+{
+ public function __construct(ManagerRegistry $registry)
+ {
+ parent::__construct($registry, NewsCategories::class);
+ }
+
+ // /**
+ // * @return NewsCategories[] Returns an array of NewsCategories objects
+ // */
+ // public function findByExampleField($value): array
+ // {
+ // return $this->createQueryBuilder('n')
+ // ->andWhere('n.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->orderBy('n.id', 'ASC')
+ // ->setMaxResults(10)
+ // ->getQuery()
+ // ->getResult()
+ // ;
+ // }
+
+ // public function findOneBySomeField($value): ?NewsCategories
+ // {
+ // return $this->createQueryBuilder('n')
+ // ->andWhere('n.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->getQuery()
+ // ->getOneOrNullResult()
+ // ;
+ // }
+}
diff --git a/app/src/Repository/NewsRepository.php b/app/src/Repository/NewsRepository.php
new file mode 100644
index 0000000000000000000000000000000000000000..c74af620cac5a7513b64aadd7b91e4d738102600
--- /dev/null
+++ b/app/src/Repository/NewsRepository.php
@@ -0,0 +1,48 @@
+
+ *
+ * @method News|null find($id, $lockMode = null, $lockVersion = null)
+ * @method News|null findOneBy(array $criteria, array $orderBy = null)
+ * @method News[] findAll()
+ * @method News[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
+ */
+class NewsRepository extends ServiceEntityRepository
+{
+ public function __construct(ManagerRegistry $registry)
+ {
+ parent::__construct($registry, News::class);
+ }
+
+ // /**
+ // * @return News[] Returns an array of News objects
+ // */
+ // public function findByExampleField($value): array
+ // {
+ // return $this->createQueryBuilder('n')
+ // ->andWhere('n.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->orderBy('n.id', 'ASC')
+ // ->setMaxResults(10)
+ // ->getQuery()
+ // ->getResult()
+ // ;
+ // }
+
+ // public function findOneBySomeField($value): ?News
+ // {
+ // return $this->createQueryBuilder('n')
+ // ->andWhere('n.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->getQuery()
+ // ->getOneOrNullResult()
+ // ;
+ // }
+}
diff --git a/app/src/Repository/NewsTypeRepository.php b/app/src/Repository/NewsTypeRepository.php
new file mode 100644
index 0000000000000000000000000000000000000000..dabf301c391be2c46d86cf26cc184faa0b2ff502
--- /dev/null
+++ b/app/src/Repository/NewsTypeRepository.php
@@ -0,0 +1,48 @@
+
+ *
+ * @method NewsType|null find($id, $lockMode = null, $lockVersion = null)
+ * @method NewsType|null findOneBy(array $criteria, array $orderBy = null)
+ * @method NewsType[] findAll()
+ * @method NewsType[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
+ */
+class NewsTypeRepository extends ServiceEntityRepository
+{
+ public function __construct(ManagerRegistry $registry)
+ {
+ parent::__construct($registry, NewsType::class);
+ }
+
+ // /**
+ // * @return NewsType[] Returns an array of NewsType objects
+ // */
+ // public function findByExampleField($value): array
+ // {
+ // return $this->createQueryBuilder('n')
+ // ->andWhere('n.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->orderBy('n.id', 'ASC')
+ // ->setMaxResults(10)
+ // ->getQuery()
+ // ->getResult()
+ // ;
+ // }
+
+ // public function findOneBySomeField($value): ?NewsType
+ // {
+ // return $this->createQueryBuilder('n')
+ // ->andWhere('n.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->getQuery()
+ // ->getOneOrNullResult()
+ // ;
+ // }
+}
diff --git a/app/src/Repository/RestaurantTypesRepository.php b/app/src/Repository/RestaurantTypesRepository.php
new file mode 100644
index 0000000000000000000000000000000000000000..8a2f3c345922d1a9dc3bc24b88e2816f6e3f0060
--- /dev/null
+++ b/app/src/Repository/RestaurantTypesRepository.php
@@ -0,0 +1,48 @@
+
+ *
+ * @method RestaurantTypes|null find($id, $lockMode = null, $lockVersion = null)
+ * @method RestaurantTypes|null findOneBy(array $criteria, array $orderBy = null)
+ * @method RestaurantTypes[] findAll()
+ * @method RestaurantTypes[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
+ */
+class RestaurantTypesRepository extends ServiceEntityRepository
+{
+ public function __construct(ManagerRegistry $registry)
+ {
+ parent::__construct($registry, RestaurantTypes::class);
+ }
+
+ // /**
+ // * @return RestaurantTypes[] Returns an array of RestaurantTypes objects
+ // */
+ // public function findByExampleField($value): array
+ // {
+ // return $this->createQueryBuilder('r')
+ // ->andWhere('r.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->orderBy('r.id', 'ASC')
+ // ->setMaxResults(10)
+ // ->getQuery()
+ // ->getResult()
+ // ;
+ // }
+
+ // public function findOneBySomeField($value): ?RestaurantTypes
+ // {
+ // return $this->createQueryBuilder('r')
+ // ->andWhere('r.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->getQuery()
+ // ->getOneOrNullResult()
+ // ;
+ // }
+}
diff --git a/app/src/Repository/RestaurantsRepository.php b/app/src/Repository/RestaurantsRepository.php
new file mode 100644
index 0000000000000000000000000000000000000000..f540695ade01a46901b408f4fceebfcd4fd52908
--- /dev/null
+++ b/app/src/Repository/RestaurantsRepository.php
@@ -0,0 +1,48 @@
+
+ *
+ * @method Restaurants|null find($id, $lockMode = null, $lockVersion = null)
+ * @method Restaurants|null findOneBy(array $criteria, array $orderBy = null)
+ * @method Restaurants[] findAll()
+ * @method Restaurants[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
+ */
+class RestaurantsRepository extends ServiceEntityRepository
+{
+ public function __construct(ManagerRegistry $registry)
+ {
+ parent::__construct($registry, Restaurants::class);
+ }
+
+// /**
+// * @return Restaurants[] Returns an array of Restaurants objects
+// */
+// public function findByExampleField($value): array
+// {
+// return $this->createQueryBuilder('r')
+// ->andWhere('r.exampleField = :val')
+// ->setParameter('val', $value)
+// ->orderBy('r.id', 'ASC')
+// ->setMaxResults(10)
+// ->getQuery()
+// ->getResult()
+// ;
+// }
+
+// public function findOneBySomeField($value): ?Restaurants
+// {
+// return $this->createQueryBuilder('r')
+// ->andWhere('r.exampleField = :val')
+// ->setParameter('val', $value)
+// ->getQuery()
+// ->getOneOrNullResult()
+// ;
+// }
+}
diff --git a/app/src/Repository/SettlementsRepository.php b/app/src/Repository/SettlementsRepository.php
new file mode 100644
index 0000000000000000000000000000000000000000..4e84a187b8e9c4715b121045721c12dd994d7b68
--- /dev/null
+++ b/app/src/Repository/SettlementsRepository.php
@@ -0,0 +1,48 @@
+
+ *
+ * @method Settlements|null find($id, $lockMode = null, $lockVersion = null)
+ * @method Settlements|null findOneBy(array $criteria, array $orderBy = null)
+ * @method Settlements[] findAll()
+ * @method Settlements[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
+ */
+class SettlementsRepository extends ServiceEntityRepository
+{
+ public function __construct(ManagerRegistry $registry)
+ {
+ parent::__construct($registry, Settlements::class);
+ }
+
+ // /**
+ // * @return Settlements[] Returns an array of Settlements objects
+ // */
+ // public function findByExampleField($value): array
+ // {
+ // return $this->createQueryBuilder('s')
+ // ->andWhere('s.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->orderBy('s.id', 'ASC')
+ // ->setMaxResults(10)
+ // ->getQuery()
+ // ->getResult()
+ // ;
+ // }
+
+ // public function findOneBySomeField($value): ?Settlements
+ // {
+ // return $this->createQueryBuilder('s')
+ // ->andWhere('s.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->getQuery()
+ // ->getOneOrNullResult()
+ // ;
+ // }
+}
diff --git a/app/src/Repository/UsersRepository.php b/app/src/Repository/UsersRepository.php
new file mode 100644
index 0000000000000000000000000000000000000000..a151d1bf09840a4a040356bc419e97fefa9532bf
--- /dev/null
+++ b/app/src/Repository/UsersRepository.php
@@ -0,0 +1,48 @@
+
+ *
+ * @method Users|null find($id, $lockMode = null, $lockVersion = null)
+ * @method Users|null findOneBy(array $criteria, array $orderBy = null)
+ * @method Users[] findAll()
+ * @method Users[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
+ */
+class UsersRepository extends ServiceEntityRepository
+{
+ public function __construct(ManagerRegistry $registry)
+ {
+ parent::__construct($registry, Users::class);
+ }
+
+ // /**
+ // * @return Users[] Returns an array of Users objects
+ // */
+ // public function findByExampleField($value): array
+ // {
+ // return $this->createQueryBuilder('u')
+ // ->andWhere('u.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->orderBy('u.id', 'ASC')
+ // ->setMaxResults(10)
+ // ->getQuery()
+ // ->getResult()
+ // ;
+ // }
+
+ // public function findOneBySomeField($value): ?Users
+ // {
+ // return $this->createQueryBuilder('u')
+ // ->andWhere('u.exampleField = :val')
+ // ->setParameter('val', $value)
+ // ->getQuery()
+ // ->getOneOrNullResult()
+ // ;
+ // }
+}
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000000000000000000000000000000000000..d1307d3b493761cc8286fd8a09122582a38403f3
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,46 @@
+version: '3.1'
+
+services:
+ db:
+ image: postgres:16.2
+ container_name: ${APP_NAME}-db
+ environment:
+ POSTGRES_PASSWORD: ${DB_PASSWORD}
+ POSTGRES_USER: ${DB_USER}
+ POSTGRES_DB: ${DB_NAME}
+ networks:
+ - app
+ ports:
+ - '${DB_PORT}:5432'
+
+ nginx:
+ image: nginx:1.25.5-alpine
+ container_name: ${APP_NAME}-nginx
+ ports:
+ - '${NGINX_PORT}:80'
+ volumes:
+ - ./app/public:/app/public
+ - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
+ networks:
+ - app
+ links:
+ - app
+ depends_on:
+ - app
+
+ app:
+ build:
+ context: .
+ dockerfile: docker/app/Dockerfile
+ container_name: ${APP_NAME}-app
+ volumes:
+ - ./app:/app
+ - ./.env:/app/.env
+ networks:
+ - app
+ depends_on:
+ - db
+
+networks:
+ app:
+ driver: bridge
\ No newline at end of file
diff --git a/docker/php/Dockerfile b/docker/app/Dockerfile
similarity index 85%
rename from docker/php/Dockerfile
rename to docker/app/Dockerfile
index 76b3fbcc75929a6a1f9a924aeb7abfcd5511fbde..3dc122da9a18b10de3d35eb3deb8ae445f177c2c 100644
--- a/docker/php/Dockerfile
+++ b/docker/app/Dockerfile
@@ -1,8 +1,9 @@
-FROM php:fpm-alpine
+FROM php:8.3-fpm-alpine
-WORKDIR app
+WORKDIR /app
COPY app .
+COPY .env .
RUN apk update && \
apk add libpq-dev && \
diff --git a/docker/app/Dockerfile.dockerignore b/docker/app/Dockerfile.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..468f164f319abbb7c3c80e778c3f779045f75bdf
--- /dev/null
+++ b/docker/app/Dockerfile.dockerignore
@@ -0,0 +1,5 @@
+# --- ignore autogenerated composer files ---
+/app/var/
+/app/vendor/
+/app/composer.lock
+# -------------------------------------------
\ No newline at end of file
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
deleted file mode 100644
index 3b3b2713f0ff8eece5858e789def2cf45ac0a7d7..0000000000000000000000000000000000000000
--- a/docker/docker-compose.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-version: '3.1'
-
-services:
- db:
- image: postgres:16.2
- environment:
- POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
- POSTGRES_USER: ${DATABASE_USER}
- networks:
- - app
- ports:
- - '5432:5432'
-
- nginx:
- build:
- context: ../
- dockerfile: docker/nginx/Dockerfile
- ports:
- - '80:80'
- - '433:433'
- networks:
- - app
- links:
- - app
- depends_on:
- - app
-
- app:
- build:
- context: ../
- dockerfile: docker/php/Dockerfile
- networks:
- - app
- depends_on:
- - db
-
-networks:
- app:
- driver: bridge
\ No newline at end of file
diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile
deleted file mode 100644
index a5bbf7c0eab2296ce3f8ba86e478341441e0967c..0000000000000000000000000000000000000000
--- a/docker/nginx/Dockerfile
+++ /dev/null
@@ -1,5 +0,0 @@
-FROM nginx:alpine
-
-COPY app app
-
-ADD docker/nginx/default.conf /etc/nginx/conf.d/
\ No newline at end of file
diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf
index 3df54dde73b676c90731645b2dbd9316733fe99a..8b660bf000099080a7afd2824243235d8815ce51 100644
--- a/docker/nginx/default.conf
+++ b/docker/nginx/default.conf
@@ -1,16 +1,25 @@
server {
+ listen 80;
index index.php;
- error_log /var/log/nginx/error.log;
- access_log /var/log/nginx/access.log;
+ server_name localhost;
root /app/public;
-
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
+ location / {
+ try_files $uri /index.php$is_args$args;
+ }
+location ~ ^/index\.php(/|$) {
fastcgi_pass app:9000;
- fastcgi_index index.php;
+ fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
+ fastcgi_param DOCUMENT_ROOT $realpath_root;
+ fastcgi_buffer_size 128k;
+ fastcgi_buffers 4 256k;
+ fastcgi_busy_buffers_size 256k;
+ internal;
+ }
+location ~ \.php$ {
+ return 404;
}
-}
+error_log /var/log/nginx/project_error.log;
+ access_log /var/log/nginx/project_access.log;
+}
\ No newline at end of file
diff --git a/src/Actions/CountFriday13Action.php b/src/Actions/CountFriday13Action.php
deleted file mode 100644
index c7986cd84ca2880d10e25b391da5d684f6e02888..0000000000000000000000000000000000000000
--- a/src/Actions/CountFriday13Action.php
+++ /dev/null
@@ -1,27 +0,0 @@
-setDate($year, $i, 13);
-
- if ($next13->format("D") === "Fri") {
- $AllFri13[] = $next13;
- }
- }
- return $AllFri13;
- }
-}
diff --git a/src/Actions/DiffDaysAction.php b/src/Actions/DiffDaysAction.php
deleted file mode 100644
index c3ee3c28a3e86c759e6627eb79b4fbcc9f4f4fa7..0000000000000000000000000000000000000000
--- a/src/Actions/DiffDaysAction.php
+++ /dev/null
@@ -1,21 +0,0 @@
-diff($dateEnd)->format('%a');
- }
-}
diff --git a/src/Actions/HowDaysToNYAction.php b/src/Actions/HowDaysToNYAction.php
deleted file mode 100644
index 3c133ed921bc0eeaa7d38b13f083b3315a846786..0000000000000000000000000000000000000000
--- a/src/Actions/HowDaysToNYAction.php
+++ /dev/null
@@ -1,20 +0,0 @@
-modify('first day of Jan +1 year');
-
- return (int) $dateOfNY->diff($date)->format('%a');
- }
-}
\ No newline at end of file
diff --git a/src/Actions/IdSearchAction.php b/src/Actions/IdSearchAction.php
deleted file mode 100644
index 695329150f8356cafbe37813f6c032ff44fd337b..0000000000000000000000000000000000000000
--- a/src/Actions/IdSearchAction.php
+++ /dev/null
@@ -1,29 +0,0 @@
- 30,
- * 'name' => 'Jhon',
- * 'age' => 23,
- * ]
- * @param $id - ид искомого элемента
- * @return array|null - найденный элемент/ вернет null при его отсутствии
- */
- public static function act(array $array): ?array
- {
-
- foreach ($array['users'] as $item){
- if ($item['id'] === $array['id']){
- return $item;
- }
- }
-
- return null;
- }
-}
diff --git a/src/Actions/PrepareMenuAction.php b/src/Actions/PrepareMenuAction.php
deleted file mode 100644
index 6c819831ff2c5e757354a29e2325268c881ea3fb..0000000000000000000000000000000000000000
--- a/src/Actions/PrepareMenuAction.php
+++ /dev/null
@@ -1,35 +0,0 @@
-act($request->serialise()));
- }
-}
diff --git a/src/Controller/DiffDaysController.php b/src/Controller/DiffDaysController.php
deleted file mode 100644
index 7dc8cd80893a2738cbc5eec8998572c3bee67e7c..0000000000000000000000000000000000000000
--- a/src/Controller/DiffDaysController.php
+++ /dev/null
@@ -1,26 +0,0 @@
-serialise();
- return new JsonResponse($action->act($array['startDate'], $array['endDate']));
- }
-}
diff --git a/src/Controller/HowDaysToNYController.php b/src/Controller/HowDaysToNYController.php
deleted file mode 100644
index 8311dcef842015f0f0fcbafea037d03fd26f89be..0000000000000000000000000000000000000000
--- a/src/Controller/HowDaysToNYController.php
+++ /dev/null
@@ -1,25 +0,0 @@
-act($request->serialise()));
- }
-}
diff --git a/src/Controller/IdSearchController.php b/src/Controller/IdSearchController.php
deleted file mode 100644
index 3dd1716b17df2919d4f5fc5ca78d4930393cd9b2..0000000000000000000000000000000000000000
--- a/src/Controller/IdSearchController.php
+++ /dev/null
@@ -1,24 +0,0 @@
-act($request->serialise()));
- }
-}
\ No newline at end of file
diff --git a/src/Controller/PrepareMenuController.php b/src/Controller/PrepareMenuController.php
deleted file mode 100644
index 49a74dd59b5600f956078046d942b7f9dfab405e..0000000000000000000000000000000000000000
--- a/src/Controller/PrepareMenuController.php
+++ /dev/null
@@ -1,26 +0,0 @@
-act($request->serialise()));
- }
-}
diff --git a/src/Controller/ReadFileLineByLineController.php b/src/Controller/ReadFileLineByLineController.php
deleted file mode 100644
index c6d0f0398a031505d844e51636a858ad469b7bc7..0000000000000000000000000000000000000000
--- a/src/Controller/ReadFileLineByLineController.php
+++ /dev/null
@@ -1,36 +0,0 @@
-files->get('File');
- $content = "";
- try{
- foreach ($action->act($file->getRealPath()) as $line) {
- $content .= $line;
- }
- } catch (\Exception $exception) {
- return new Response($exception->getMessage(), Response::HTTP_NOT_FOUND);
- }
-
- return new Response($content);
- }
-}
diff --git a/src/Controller/ReadLogFileController.php b/src/Controller/ReadLogFileController.php
deleted file mode 100644
index 809cf6439f59dbc6117f3a7d180a7702f643a785..0000000000000000000000000000000000000000
--- a/src/Controller/ReadLogFileController.php
+++ /dev/null
@@ -1,29 +0,0 @@
-files->get("File");
- return new Response($action->act($file->getPathname()));
- }
-
- }
-
diff --git a/src/Controller/SortPriceController.php b/src/Controller/SortPriceController.php
deleted file mode 100644
index 0f1d250b6c31ea3f0dee3f4581c722d10adb2cdf..0000000000000000000000000000000000000000
--- a/src/Controller/SortPriceController.php
+++ /dev/null
@@ -1,24 +0,0 @@
-act($request->serialise()));
- }
-}
diff --git a/src/Controller/UniqElementsController.php b/src/Controller/UniqElementsController.php
deleted file mode 100644
index 442c9d706cd88d708688f9dc1a5ecb3260d812a1..0000000000000000000000000000000000000000
--- a/src/Controller/UniqElementsController.php
+++ /dev/null
@@ -1,19 +0,0 @@
-act($request->serialise()));
- }
-}
diff --git a/src/Requests/AllFri13Request.php b/src/Requests/AllFri13Request.php
deleted file mode 100644
index d98cebb598d5216595bfd7c89d2b6e2b91662619..0000000000000000000000000000000000000000
--- a/src/Requests/AllFri13Request.php
+++ /dev/null
@@ -1,21 +0,0 @@
-year;
- }
-}
\ No newline at end of file
diff --git a/src/Requests/BaseRequest.php b/src/Requests/BaseRequest.php
deleted file mode 100644
index b2fb49ed286c374885e1b073732ab13a0366d5a0..0000000000000000000000000000000000000000
--- a/src/Requests/BaseRequest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-populate();
-
- if (self::AUTO_VALIDATE) {
- $this->validate();
- }
- }
-
- protected function populate(): void
- {
- foreach ($this->getRequest()->toArray() as $property => $value) {
- if (property_exists($this, $property)) {
- $this->{$property} = $value;
- }
- }
- }
-
- /**
- * валидация и выброкса ошибки при валидации
- * @return void
- */
- public function validate()
- {
- $errors = $this->validator->validate($this);
-
- $messages = [
- 'message' => 'validation_failed',
- 'errors' => []
- ];
-
- foreach ($errors as $error) {
- $messages['errors'][] = [
- 'property' => $error->getPropertyPath(),
- 'value' => $error->getInvalidValue(),
- 'message' => $error->getMessage(),
- ];
- }
-
- if (count($messages['errors']) > 0) {
- $response = new JsonResponse($messages, 201);
- $response->send();
-
- throw new ValidatorException('Validation failed', $messages);
- }
- }
-
- public function getRequest(): Request
- {
- return Request::createFromGlobals();
- }
-
- abstract public function serialise(): mixed;
-}
\ No newline at end of file
diff --git a/src/Requests/BeforeNYDateRequest.php b/src/Requests/BeforeNYDateRequest.php
deleted file mode 100644
index 445bc20f34656a0551f6a13947206872e4db6aa6..0000000000000000000000000000000000000000
--- a/src/Requests/BeforeNYDateRequest.php
+++ /dev/null
@@ -1,19 +0,0 @@
-date);
- }
-}
diff --git a/src/Requests/DiffDaysRequest.php b/src/Requests/DiffDaysRequest.php
deleted file mode 100644
index 95295fd7bba664592cb6358dac546176dd9d6ea7..0000000000000000000000000000000000000000
--- a/src/Requests/DiffDaysRequest.php
+++ /dev/null
@@ -1,29 +0,0 @@
- new DateTimeImmutable($this->startDate),
- 'endDate' => new DateTimeImmutable($this->endDate),
- ];
- }
-}
\ No newline at end of file
diff --git a/src/Requests/MenuRequest.php b/src/Requests/MenuRequest.php
deleted file mode 100644
index 99bf7832858bdbab9739ab66d52845988756873d..0000000000000000000000000000000000000000
--- a/src/Requests/MenuRequest.php
+++ /dev/null
@@ -1,32 +0,0 @@
- [
- new NotBlank(),
- new Type('string'),
- ],
- 'depth' => [
- new NotBlank(),
- new Type('integer'),
- ]
- ])
- )]
- public $menu;
-
- public function serialise(): mixed
- {
- return $this->menu;
- }
-}
diff --git a/src/Requests/PricesRequest.php b/src/Requests/PricesRequest.php
deleted file mode 100644
index dadac42991ac8f9fab940eccac3de760d24cbff3..0000000000000000000000000000000000000000
--- a/src/Requests/PricesRequest.php
+++ /dev/null
@@ -1,42 +0,0 @@
- [
- new NotBlank(),
- new Type('integer'),
- ],
- 'count' => [
- new NotBlank(),
- new Type('integer'),
- ],
- ],
- )
- ]
- )]
- public $prices;
-
- /**
- * серализация реквеста под массив
- * @return mixed
- */
- public function serialise(): mixed
- {
- return $this->prices;
- }
-}
diff --git a/src/Requests/UniqElementsRequest.php b/src/Requests/UniqElementsRequest.php
deleted file mode 100644
index 111731374bbdde336e946a1623fdb42512fe8939..0000000000000000000000000000000000000000
--- a/src/Requests/UniqElementsRequest.php
+++ /dev/null
@@ -1,21 +0,0 @@
-data;
- }
-}
diff --git a/src/Requests/UsersRequest.php b/src/Requests/UsersRequest.php
deleted file mode 100644
index 1d5bd95f0d2b5f3840e001e6247e272c555a8d82..0000000000000000000000000000000000000000
--- a/src/Requests/UsersRequest.php
+++ /dev/null
@@ -1,45 +0,0 @@
- [
- new Type('integer'),
- new NotBlank(),
- ],
- 'name' => [
- new Type('string'),
- new NotBlank(),
- ],
- 'age' => new Optional([
- new Type('integer'),
- ])
- ])
- )]
- public $users;
-
- /**
- * @return array
- */
- public function serialise(): array
- {
- return [
- 'id' => $this->id,
- 'users' => $this->users,
- ];
- }
-}
\ No newline at end of file
diff --git a/templates/count_friday13/index.html.twig b/templates/count_friday13/index.html.twig
deleted file mode 100644
index e90908d4154aa6ea087da53532a9996b0a1573f3..0000000000000000000000000000000000000000
--- a/templates/count_friday13/index.html.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends 'base.html.twig' %}
-
-{% block title %}Hello CountFriday13Controller!{% endblock %}
-
-{% block body %}
-
-
-
-
Hello {{ controller_name }}! ✅
-
- This friendly message is coming from:
-
- - Your controller at
/home/tamanit/myProj/iqdevTranningProgram/src/Controller/CountFriday13Controller.php
- - Your template at
/home/tamanit/myProj/iqdevTranningProgram/templates/count_friday13/index.html.twig
-
-
-{% endblock %}
diff --git a/templates/diff_days/index.html.twig b/templates/diff_days/index.html.twig
deleted file mode 100644
index 462ac0bbc54b6e9311447613b99e5457433851c0..0000000000000000000000000000000000000000
--- a/templates/diff_days/index.html.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends 'base.html.twig' %}
-
-{% block title %}Hello DiffDaysController!{% endblock %}
-
-{% block body %}
-
-
-
-
Hello {{ controller_name }}! ✅
-
- This friendly message is coming from:
-
- - Your controller at
/home/tamanit/myProj/iqdevTranningProgram/src/Controller/DiffDaysController.php
- - Your template at
/home/tamanit/myProj/iqdevTranningProgram/templates/diff_days/index.html.twig
-
-
-{% endblock %}
diff --git a/templates/how_days_to_ny/index.html.twig b/templates/how_days_to_ny/index.html.twig
deleted file mode 100644
index 4058510b94b0920e26da7a99e4def23bac7be5d2..0000000000000000000000000000000000000000
--- a/templates/how_days_to_ny/index.html.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends 'base.html.twig' %}
-
-{% block title %}Hello HowDaysToNYController!{% endblock %}
-
-{% block body %}
-
-
-
-
Hello {{ controller_name }}! ✅
-
- This friendly message is coming from:
-
- - Your controller at
/home/tamanit/myProj/iqdevTranningProgram/src/Controller/HowDaysToNYController.php
- - Your template at
/home/tamanit/myProj/iqdevTranningProgram/templates/how_days_to_ny/index.html.twig
-
-
-{% endblock %}
diff --git a/templates/prepare_menu/index.html.twig b/templates/prepare_menu/index.html.twig
deleted file mode 100644
index ddfd6d14ef4b7191b4413d38aa67b9f4a6bd8137..0000000000000000000000000000000000000000
--- a/templates/prepare_menu/index.html.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends 'base.html.twig' %}
-
-{% block title %}Hello PrepareMenuController!{% endblock %}
-
-{% block body %}
-
-
-
-
Hello {{ controller_name }}! ✅
-
- This friendly message is coming from:
-
- - Your controller at
/home/tamanit/myProj/iqdevTranningProgram/src/Controller/PrepareMenuController.php
- - Your template at
/home/tamanit/myProj/iqdevTranningProgram/templates/prepare_menu/index.html.twig
-
-
-{% endblock %}
diff --git a/templates/read_file_line_by_line/index.html.twig b/templates/read_file_line_by_line/index.html.twig
deleted file mode 100644
index 68aed515aad05ba67fe66ac06faeec8307a21a4f..0000000000000000000000000000000000000000
--- a/templates/read_file_line_by_line/index.html.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends 'base.html.twig' %}
-
-{% block title %}Hello ReadFileLineByLineController!{% endblock %}
-
-{% block body %}
-
-
-
-
Hello {{ controller_name }}! ✅
-
- This friendly message is coming from:
-
- - Your controller at
/home/tamanit/myProj/iqdevTranningProgram/src/Controller/ReadFileLineByLineController.php
- - Your template at
/home/tamanit/myProj/iqdevTranningProgram/templates/read_file_line_by_line/index.html.twig
-
-
-{% endblock %}
diff --git a/templates/read_log_file/index.html.twig b/templates/read_log_file/index.html.twig
deleted file mode 100644
index 9f08f19af529af6e8a648246ba6606cce8dcb9fe..0000000000000000000000000000000000000000
--- a/templates/read_log_file/index.html.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends 'base.html.twig' %}
-
-{% block title %}Hello ReadLogFileController!{% endblock %}
-
-{% block body %}
-
-
-
-
Hello {{ controller_name }}! ✅
-
- This friendly message is coming from:
-
- - Your controller at
/home/tamanit/myProj/iqdevTranningProgram/src/Controller/ReadLogFileController.php
- - Your template at
/home/tamanit/myProj/iqdevTranningProgram/templates/read_log_file/index.html.twig
-
-
-{% endblock %}
diff --git a/templates/search/index.html.twig b/templates/search/index.html.twig
deleted file mode 100644
index bd465aa05ce19d1de5e42d822bcf4fb7a6b6e239..0000000000000000000000000000000000000000
--- a/templates/search/index.html.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends 'base.html.twig' %}
-
-{% block title %}Hello SearchController!{% endblock %}
-
-{% block body %}
-
-
-
-
Hello {{ controller_name }}! ✅
-
- This friendly message is coming from:
-
- - Your controller at
/home/tamanit/myProj/iqdevTranningProgram/src/Controller/SearchController.php
- - Your template at
/home/tamanit/myProj/iqdevTranningProgram/templates/search/index.html.twig
-
-
-{% endblock %}
diff --git a/templates/sort_price/index.html.twig b/templates/sort_price/index.html.twig
deleted file mode 100644
index cd62397e96e6d43936ad35e95dec013ea992cb21..0000000000000000000000000000000000000000
--- a/templates/sort_price/index.html.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends 'base.html.twig' %}
-
-{% block title %}Hello SortPriceController!{% endblock %}
-
-{% block body %}
-
-
-
-
Hello {{ controller_name }}! ✅
-
- This friendly message is coming from:
-
- - Your controller at
/home/tamanit/myProj/iqdevTranningProgram/src/Controller/SortPriceController.php
- - Your template at
/home/tamanit/myProj/iqdevTranningProgram/templates/sort_price/index.html.twig
-
-
-{% endblock %}
diff --git a/templates/uniq_elements/index.html.twig b/templates/uniq_elements/index.html.twig
deleted file mode 100644
index d56494b7519d691246e25955e4d51e8d7523b566..0000000000000000000000000000000000000000
--- a/templates/uniq_elements/index.html.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends 'base.html.twig' %}
-
-{% block title %}Hello UniqElementsController!{% endblock %}
-
-{% block body %}
-
-
-
-
Hello {{ controller_name }}! ✅
-
- This friendly message is coming from:
-
- - Your controller at
/home/tamanit/myProj/iqdevTranningProgram/src/Controller/UniqElementsController.php
- - Your template at
/home/tamanit/myProj/iqdevTranningProgram/templates/uniq_elements/index.html.twig
-
-
-{% endblock %}