diff --git a/.env.example b/.env.example new file mode 100644 index 0000000000000000000000000000000000000000..83ec4f50049b7558132b5e7f82a4a3c21bd63eea --- /dev/null +++ b/.env.example @@ -0,0 +1,38 @@ +# In all environments, the following files are loaded if they exist, +# the latter taking precedence over the former: +# +# * .env contains default values for the environment variables needed by the app +# * .env.local uncommitted file with local overrides +# * .env.$APP_ENV committed environment-specific defaults +# * .env.$APP_ENV.local uncommitted environment-specific overrides +# +# Real environment variables win over .env files. +# +# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES. +# https://symfony.com/doc/current/configuration/secrets.html +# +# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2). +# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration + +# --- name for containers --- + +# --------------------------- + +# ---- data base config ----- +#DB_URL="postgresql://db:5432/fenix?serverVersion=16&charset=utf8" + +# --------------------------- + +# - symfony/framework-bundle - +#APP_ENV=dev +#APP_SECRET=397fa37eb874a2d47f2cac19e2f8802a +# ---------------------------- + +# ---- symfony/messenger ----- +#MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0 +# ---------------------------- + +# --------- outports --------- +#NGINX_PORT="80" +#DB_PORT="5432" +# ---------------------------- \ No newline at end of file diff --git a/.gitignore b/.gitignore index 723ef36f4e4f32c4560383aa5987c575a30c6535..f1ebd4a21b2d7b203cf20009996194bc4c43336e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ -.idea \ No newline at end of file +# --- block jetbrains files --- +/.idea/ +# ----------------------------- + +# ------ block env files ------ +/.env \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b81b018ad684f3a35fee301741b2734c8f4..0000000000000000000000000000000000000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/iqdevTranningProgram.iml b/.idea/iqdevTranningProgram.iml deleted file mode 100644 index 54d8720cc242bb9e2d9c1e29990d5988f667bb5b..0000000000000000000000000000000000000000 --- a/.idea/iqdevTranningProgram.iml +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index aedf51d4705090b3af7b4d50da524da260b488fd..0000000000000000000000000000000000000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml deleted file mode 100644 index 762b2dfb47f89213485944d42f43f98703d63d19..0000000000000000000000000000000000000000 --- a/.idea/php.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/phpunit.xml b/.idea/phpunit.xml deleted file mode 100644 index 4f8104cfb166aed9afb9fa8317271ebd4f44e5cb..0000000000000000000000000000000000000000 --- a/.idea/phpunit.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 b/.idea/sonarlint/issuestore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 deleted file mode 100644 index ef18277ec815ab66f9347e4276513938f9fc5984..0000000000000000000000000000000000000000 --- a/.idea/sonarlint/issuestore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 +++ /dev/null @@ -1,2 +0,0 @@ - -f php:S4833"QReplace "require_once" with namespace import mechanism through the "use" keyword.(է \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 b/.idea/sonarlint/issuestore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/.idea/sonarlint/issuestore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 b/.idea/sonarlint/issuestore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 deleted file mode 100644 index 49baffe2daef275d9641cc73fbdcc8705cfd0037..0000000000000000000000000000000000000000 --- a/.idea/sonarlint/issuestore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 +++ /dev/null @@ -1,2 +0,0 @@ - -php:S112"FDefine and throw a dedicated exception instead of using a generic one.(ޖ81J$639b0b04-18e2-4d6f-b884-25955f0cf69c \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 b/.idea/sonarlint/issuestore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb deleted file mode 100644 index 952c8a69794caa637ef4b2d74236ebf8f3ae2674..0000000000000000000000000000000000000000 --- a/.idea/sonarlint/issuestore/index.pb +++ /dev/null @@ -1,11 +0,0 @@ - -_ -/src/Controller/ReadFileLineByLineController.php,1/1/11fc5ee351c0edf973b3158acd40705a072901f7 -F -public/HelloWorld.html,d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 -@ -public/index.php,0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 -_ -/src/Repository/ReadFileLineByLineRepository.php,7/c/7c103dcd8c0314a8821f84f7886754511983a720 -X -(src/Actions/ReadFileLineByLineAction.php,b/b/bb599184d4f741824c29e585018cdb8069747a80 \ No newline at end of file diff --git a/.idea/sonarlint/securityhotspotstore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 b/.idea/sonarlint/securityhotspotstore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/.idea/sonarlint/securityhotspotstore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 b/.idea/sonarlint/securityhotspotstore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/.idea/sonarlint/securityhotspotstore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 b/.idea/sonarlint/securityhotspotstore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/.idea/sonarlint/securityhotspotstore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 b/.idea/sonarlint/securityhotspotstore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/.idea/sonarlint/securityhotspotstore/index.pb b/.idea/sonarlint/securityhotspotstore/index.pb deleted file mode 100644 index 952c8a69794caa637ef4b2d74236ebf8f3ae2674..0000000000000000000000000000000000000000 --- a/.idea/sonarlint/securityhotspotstore/index.pb +++ /dev/null @@ -1,11 +0,0 @@ - -_ -/src/Controller/ReadFileLineByLineController.php,1/1/11fc5ee351c0edf973b3158acd40705a072901f7 -F -public/HelloWorld.html,d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 -@ -public/index.php,0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 -_ -/src/Repository/ReadFileLineByLineRepository.php,7/c/7c103dcd8c0314a8821f84f7886754511983a720 -X -(src/Actions/ReadFileLineByLineAction.php,b/b/bb599184d4f741824c29e585018cdb8069747a80 \ No newline at end of file diff --git a/.idea/symfony2.xml b/.idea/symfony2.xml deleted file mode 100644 index 329806066e98b4e5d3cac43f8b4f3f10d55bec96..0000000000000000000000000000000000000000 --- a/.idea/symfony2.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1ddfbbc029bcab630581847471d7f238ec53..0000000000000000000000000000000000000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/app/.env b/app/.env index c6d7fb43d6f1d3ac25546da5434da0935d0edebc..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 --- a/app/.env +++ b/app/.env @@ -1,43 +0,0 @@ -# In all environments, the following files are loaded if they exist, -# the latter taking precedence over the former: -# -# * .env contains default values for the environment variables needed by the app -# * .env.local uncommitted file with local overrides -# * .env.$APP_ENV committed environment-specific defaults -# * .env.$APP_ENV.local uncommitted environment-specific overrides -# -# Real environment variables win over .env files. -# -# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES. -# https://symfony.com/doc/current/configuration/secrets.html -# -# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2). -# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration - -###> symfony/framework-bundle ### -APP_ENV=dev -APP_SECRET=397fa37eb874a2d47f2cac19e2f8802a -###< symfony/framework-bundle ### - -###> doctrine/doctrine-bundle ### -# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url -# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml -# -# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" -# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4" -# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4" -DATABASE_URL="postgresql://db:5432/db?serverVersion=16&charset=utf8" -DATABASE_USER="root" -DATABASE_PASSWORD="root" -###< doctrine/doctrine-bundle ### - -###> symfony/messenger ### -# Choose one of the transports below -# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages -# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages -MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0 -###< symfony/messenger ### - -###> symfony/mailer ### -# MAILER_DSN=null://null -###< symfony/mailer ### diff --git a/app/.gitignore b/app/.gitignore index 09ca950eaa7fced1dd432294c8970baac38198b3..50be080239c928ba6a19dcccee86d6394b1463a7 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1,5 +1,6 @@ ###> symfony/framework-bundle ### +/.env /.env.local /.env.local.php /.env.*.local @@ -7,6 +8,7 @@ /public/bundles/ /var/ /vendor/ +composer.lock ###< symfony/framework-bundle ### ###> phpunit/phpunit ### @@ -23,5 +25,3 @@ /public/assets/ /assets/vendor/ ###< symfony/asset-mapper ### - -.idea diff --git a/app/composer.json b/app/composer.json index 79c04509aa1273ba13bb8af6e591ccdef8ce4192..564d77eb4e396930f5f79afd26e5d1388479ff03 100644 --- a/app/composer.json +++ b/app/composer.json @@ -19,7 +19,7 @@ "symfony/doctrine-messenger": "6.4.*", "symfony/dotenv": "6.4.*", "symfony/expression-language": "6.4.*", - "symfony/flex": "^2", + "symfony/flex": "^2.4", "symfony/form": "6.4.*", "symfony/framework-bundle": "6.4.*", "symfony/http-client": "6.4.*", diff --git a/app/config/packages/doctrine.yaml b/app/config/packages/doctrine.yaml index 75ec9e8410acc7fa7b17f7c59022e29cb79da9d1..bf5aa40f261c4b9a45213683c22be84f11c81bc5 100644 --- a/app/config/packages/doctrine.yaml +++ b/app/config/packages/doctrine.yaml @@ -1,6 +1,8 @@ doctrine: dbal: - url: '%env(resolve:DATABASE_URL)%' + url: '%env(resolve:DB_URL)%' + user: '%env(resolve:DB_USER)%' + password: '%env(resolve:DB_PASSWORD)%' # IMPORTANT: You MUST configure your server version, # either here or in the DATABASE_URL env var (see .env file) diff --git a/app/migrations/Version20240427114630.php b/app/migrations/Version20240427114630.php new file mode 100644 index 0000000000000000000000000000000000000000..84378b72ef805ae806b666f1171a2a2956f7d2f8 --- /dev/null +++ b/app/migrations/Version20240427114630.php @@ -0,0 +1,96 @@ +addSql('CREATE TABLE kitchens (id UUID NOT NULL, name VARCHAR(255) NOT NULL, code VARCHAR(255) NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE news (id UUID NOT NULL, type_id UUID DEFAULT NULL, name VARCHAR(255) NOT NULL, code VARCHAR(255) NOT NULL, sort INT NOT NULL, active BOOLEAN NOT NULL, created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, update_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, preview_image VARCHAR(255) DEFAULT NULL, preview_text VARCHAR(1000) DEFAULT NULL, detail_image VARCHAR(255) DEFAULT NULL, detail_text VARCHAR(255) DEFAULT NULL, main_page_render BOOLEAN NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX IDX_1DD39950C54C8C93 ON news (type_id)'); + $this->addSql('COMMENT ON COLUMN news.created_at IS \'(DC2Type:datetime_immutable)\''); + $this->addSql('COMMENT ON COLUMN news.update_at IS \'(DC2Type:datetime_immutable)\''); + $this->addSql('CREATE TABLE news_news_categories (news_id UUID NOT NULL, news_categories_id UUID NOT NULL, PRIMARY KEY(news_id, news_categories_id))'); + $this->addSql('CREATE INDEX IDX_34AB0102B5A459A0 ON news_news_categories (news_id)'); + $this->addSql('CREATE INDEX IDX_34AB0102F7F178F1 ON news_news_categories (news_categories_id)'); + $this->addSql('CREATE TABLE news_categories (id UUID NOT NULL, name VARCHAR(255) NOT NULL, code VARCHAR(255) NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE news_type (id UUID NOT NULL, name VARCHAR(255) NOT NULL, code VARCHAR(255) NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE restaurant_types (id UUID NOT NULL, name VARCHAR(255) NOT NULL, code VARCHAR(255) NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE restaurants (id UUID NOT NULL, type_id UUID DEFAULT NULL, settlement_id UUID DEFAULT NULL, active BOOLEAN NOT NULL, sort INT NOT NULL, created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, update_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, name VARCHAR(255) NOT NULL, code VARCHAR(255) NOT NULL, description VARCHAR(255) NOT NULL, receipt VARCHAR(255) NOT NULL, receipt_info VARCHAR(255) NOT NULL, phone VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, address VARCHAR(255) NOT NULL, tags VARCHAR(255) NOT NULL, site VARCHAR(255) NOT NULL, coordinates TEXT NOT NULL, preview_image VARCHAR(255) NOT NULL, detail_image VARCHAR(255) NOT NULL, gallery VARCHAR(255) NOT NULL, how_to_find VARCHAR(255) NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX IDX_AD837724C54C8C93 ON restaurants (type_id)'); + $this->addSql('CREATE INDEX IDX_AD837724C2B9C425 ON restaurants (settlement_id)'); + $this->addSql('COMMENT ON COLUMN restaurants.created_at IS \'(DC2Type:datetime_immutable)\''); + $this->addSql('COMMENT ON COLUMN restaurants.update_at IS \'(DC2Type:datetime_immutable)\''); + $this->addSql('COMMENT ON COLUMN restaurants.coordinates IS \'(DC2Type:array)\''); + $this->addSql('CREATE TABLE restaurants_kitchens (restaurants_id UUID NOT NULL, kitchens_id UUID NOT NULL, PRIMARY KEY(restaurants_id, kitchens_id))'); + $this->addSql('CREATE INDEX IDX_716464694DCA160A ON restaurants_kitchens (restaurants_id)'); + $this->addSql('CREATE INDEX IDX_71646469E043FCBC ON restaurants_kitchens (kitchens_id)'); + $this->addSql('CREATE TABLE settlements (id UUID NOT NULL, active BOOLEAN NOT NULL, created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, update_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, name VARCHAR(255) NOT NULL, code VARCHAR(255) NOT NULL, coordinates TEXT NOT NULL, PRIMARY KEY(id))'); + $this->addSql('COMMENT ON COLUMN settlements.created_at IS \'(DC2Type:datetime_immutable)\''); + $this->addSql('COMMENT ON COLUMN settlements.update_at IS \'(DC2Type:datetime_immutable)\''); + $this->addSql('COMMENT ON COLUMN settlements.coordinates IS \'(DC2Type:array)\''); + $this->addSql('CREATE TABLE users (id UUID NOT NULL, name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, phone VARCHAR(255) NOT NULL, is_male BOOLEAN NOT NULL, address VARCHAR(255) NOT NULL, birthday DATE NOT NULL, PRIMARY KEY(id))'); + $this->addSql('COMMENT ON COLUMN users.birthday IS \'(DC2Type:date_immutable)\''); + $this->addSql('CREATE TABLE messenger_messages (id BIGSERIAL NOT NULL, body TEXT NOT NULL, headers TEXT NOT NULL, queue_name VARCHAR(190) NOT NULL, created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, available_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, delivered_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX IDX_75EA56E0FB7336F0 ON messenger_messages (queue_name)'); + $this->addSql('CREATE INDEX IDX_75EA56E0E3BD61CE ON messenger_messages (available_at)'); + $this->addSql('CREATE INDEX IDX_75EA56E016BA31DB ON messenger_messages (delivered_at)'); + $this->addSql('COMMENT ON COLUMN messenger_messages.created_at IS \'(DC2Type:datetime_immutable)\''); + $this->addSql('COMMENT ON COLUMN messenger_messages.available_at IS \'(DC2Type:datetime_immutable)\''); + $this->addSql('COMMENT ON COLUMN messenger_messages.delivered_at IS \'(DC2Type:datetime_immutable)\''); + $this->addSql('CREATE OR REPLACE FUNCTION notify_messenger_messages() RETURNS TRIGGER AS $$ + BEGIN + PERFORM pg_notify(\'messenger_messages\', NEW.queue_name::text); + RETURN NEW; + END; + $$ LANGUAGE plpgsql;'); + $this->addSql('DROP TRIGGER IF EXISTS notify_trigger ON messenger_messages;'); + $this->addSql('CREATE TRIGGER notify_trigger AFTER INSERT OR UPDATE ON messenger_messages FOR EACH ROW EXECUTE PROCEDURE notify_messenger_messages();'); + $this->addSql('ALTER TABLE news ADD CONSTRAINT FK_1DD39950C54C8C93 FOREIGN KEY (type_id) REFERENCES news_type (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE news_news_categories ADD CONSTRAINT FK_34AB0102B5A459A0 FOREIGN KEY (news_id) REFERENCES news (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE news_news_categories ADD CONSTRAINT FK_34AB0102F7F178F1 FOREIGN KEY (news_categories_id) REFERENCES news_categories (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE restaurants ADD CONSTRAINT FK_AD837724C54C8C93 FOREIGN KEY (type_id) REFERENCES restaurant_types (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE restaurants ADD CONSTRAINT FK_AD837724C2B9C425 FOREIGN KEY (settlement_id) REFERENCES settlements (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE restaurants_kitchens ADD CONSTRAINT FK_716464694DCA160A FOREIGN KEY (restaurants_id) REFERENCES restaurants (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE restaurants_kitchens ADD CONSTRAINT FK_71646469E043FCBC FOREIGN KEY (kitchens_id) REFERENCES kitchens (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('CREATE SCHEMA public'); + $this->addSql('ALTER TABLE news DROP CONSTRAINT FK_1DD39950C54C8C93'); + $this->addSql('ALTER TABLE news_news_categories DROP CONSTRAINT FK_34AB0102B5A459A0'); + $this->addSql('ALTER TABLE news_news_categories DROP CONSTRAINT FK_34AB0102F7F178F1'); + $this->addSql('ALTER TABLE restaurants DROP CONSTRAINT FK_AD837724C54C8C93'); + $this->addSql('ALTER TABLE restaurants DROP CONSTRAINT FK_AD837724C2B9C425'); + $this->addSql('ALTER TABLE restaurants_kitchens DROP CONSTRAINT FK_716464694DCA160A'); + $this->addSql('ALTER TABLE restaurants_kitchens DROP CONSTRAINT FK_71646469E043FCBC'); + $this->addSql('DROP TABLE kitchens'); + $this->addSql('DROP TABLE news'); + $this->addSql('DROP TABLE news_news_categories'); + $this->addSql('DROP TABLE news_categories'); + $this->addSql('DROP TABLE news_type'); + $this->addSql('DROP TABLE restaurant_types'); + $this->addSql('DROP TABLE restaurants'); + $this->addSql('DROP TABLE restaurants_kitchens'); + $this->addSql('DROP TABLE settlements'); + $this->addSql('DROP TABLE users'); + $this->addSql('DROP TABLE messenger_messages'); + } +} diff --git a/app/src/Entity/Kitchens.php b/app/src/Entity/Kitchens.php new file mode 100644 index 0000000000000000000000000000000000000000..29ac79059c1792e977930b0b44ae1cea82bff9b0 --- /dev/null +++ b/app/src/Entity/Kitchens.php @@ -0,0 +1,97 @@ + + */ + #[ORM\ManyToMany(targetEntity: Restaurants::class, mappedBy: 'kitchens')] + private Collection $restaurants; + + public function __construct() + { + $this->restaurants = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->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 getCode(): ?string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + + return $this; + } + + /** + * @return Collection + */ + public function getRestaurants(): Collection + { + return $this->restaurants; + } + + public function addRestaurant(Restaurants $restaurant): static + { + if (!$this->restaurants->contains($restaurant)) { + $this->restaurants->add($restaurant); + $restaurant->addKitchen($this); + } + + return $this; + } + + public function removeRestaurant(Restaurants $restaurant): static + { + if ($this->restaurants->removeElement($restaurant)) { + $restaurant->removeKitchen($this); + } + + return $this; + } +} diff --git a/app/src/Entity/News.php b/app/src/Entity/News.php new file mode 100644 index 0000000000000000000000000000000000000000..cd6d609dfaeec5a9ee187daf9684fe3c7bc1bb24 --- /dev/null +++ b/app/src/Entity/News.php @@ -0,0 +1,246 @@ + + */ + #[ORM\ManyToMany(targetEntity: NewsCategories::class, inversedBy: 'news')] + private Collection $categories; + + #[ORM\Column] + private ?bool $mainPageRender = null; + + + + public function __construct() + { + $this->categories = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->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 getCode(): ?string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + + return $this; + } + + public function getSort(): ?int + { + return $this->sort; + } + + public function setSort(int $sort): static + { + $this->sort = $sort; + + return $this; + } + + public function isActive(): ?bool + { + return $this->active; + } + + public function setActive(bool $active): static + { + $this->active = $active; + + return $this; + } + + public function getCreatedAt(): ?\DateTimeImmutable + { + return $this->createdAt; + } + + public function setCreatedAt(\DateTimeImmutable $createdAt): static + { + $this->createdAt = $createdAt; + + return $this; + } + + public function getUpdateAt(): ?\DateTimeImmutable + { + return $this->updateAt; + } + + public function setUpdateAt(\DateTimeImmutable $updateAt): static + { + $this->updateAt = $updateAt; + + return $this; + } + + public function getPreviewImage(): ?string + { + return $this->previewImage; + } + + public function setPreviewImage(?string $previewImage): static + { + $this->previewImage = $previewImage; + + return $this; + } + + public function getPreviewText(): ?string + { + return $this->previewText; + } + + public function setPreviewText(?string $previewText): static + { + $this->previewText = $previewText; + + return $this; + } + + public function getDetailImage(): ?string + { + return $this->detailImage; + } + + public function setDetailImage(?string $detailImage): static + { + $this->detailImage = $detailImage; + + return $this; + } + + public function getDetailText(): ?string + { + return $this->detailText; + } + + public function setDetailText(?string $detailText): static + { + $this->detailText = $detailText; + + return $this; + } + + public function getType(): ?NewsType + { + return $this->type; + } + + public function setType(?NewsType $type): static + { + $this->type = $type; + + return $this; + } + + /** + * @return Collection + */ + public function getCategories(): Collection + { + return $this->categories; + } + + public function addCategory(NewsCategories $category): static + { + if (!$this->categories->contains($category)) { + $this->categories->add($category); + } + + return $this; + } + + public function removeCategory(NewsCategories $category): static + { + $this->categories->removeElement($category); + + return $this; + } + + public function isMainPageRender(): ?bool + { + return $this->mainPageRender; + } + + public function setMainPageRender(bool $mainPageRender): static + { + $this->mainPageRender = $mainPageRender; + + return $this; + } +} diff --git a/app/src/Entity/NewsCategories.php b/app/src/Entity/NewsCategories.php new file mode 100644 index 0000000000000000000000000000000000000000..aa5bf02acb016cd97b99dae560b01b1abbdb5ac5 --- /dev/null +++ b/app/src/Entity/NewsCategories.php @@ -0,0 +1,97 @@ + + */ + #[ORM\ManyToMany(targetEntity: News::class, mappedBy: 'categories')] + private Collection $news; + + public function __construct() + { + $this->news = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->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 getCode(): ?string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + + return $this; + } + + /** + * @return Collection + */ + public function getNews(): Collection + { + return $this->news; + } + + public function addNews(News $news): static + { + if (!$this->news->contains($news)) { + $this->news->add($news); + $news->addCategory($this); + } + + return $this; + } + + public function removeNews(News $news): static + { + if ($this->news->removeElement($news)) { + $news->removeCategory($this); + } + + return $this; + } +} diff --git a/app/src/Entity/NewsType.php b/app/src/Entity/NewsType.php new file mode 100644 index 0000000000000000000000000000000000000000..f5764f28073991d615d358775bd5cc3b9e3e9536 --- /dev/null +++ b/app/src/Entity/NewsType.php @@ -0,0 +1,100 @@ + + */ + #[ORM\OneToMany(targetEntity: News::class, mappedBy: 'type')] + private Collection $news; + + public function __construct() + { + $this->news = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->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 getCode(): ?string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + + return $this; + } + + /** + * @return Collection + */ + public function getNews(): Collection + { + return $this->news; + } + + public function addNews(News $news): static + { + if (!$this->news->contains($news)) { + $this->news->add($news); + $news->setType($this); + } + + return $this; + } + + public function removeNews(News $news): static + { + if ($this->news->removeElement($news)) { + // set the owning side to null (unless already changed) + if ($news->getType() === $this) { + $news->setType(null); + } + } + + return $this; + } +} diff --git a/app/src/Entity/RestaurantTypes.php b/app/src/Entity/RestaurantTypes.php new file mode 100644 index 0000000000000000000000000000000000000000..fc3c1b0f143a85c74a8bf31d42a516f79796b6e7 --- /dev/null +++ b/app/src/Entity/RestaurantTypes.php @@ -0,0 +1,101 @@ + + */ + #[ORM\OneToMany(targetEntity: Restaurants::class, mappedBy: 'type')] + private Collection $restaurants; + + public function __construct() + { + $this->restaurants = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->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 getCode(): ?string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + + return $this; + } + + /** + * @return Collection + */ + public function getRestaurants(): Collection + { + return $this->restaurants; + } + + public function addRestaurant(Restaurants $restaurant): static + { + if (!$this->restaurants->contains($restaurant)) { + $this->restaurants->add($restaurant); + $restaurant->setType($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->getType() === $this) { + $restaurant->setType(null); + } + } + + return $this; + } +} diff --git a/app/src/Entity/Restaurants.php b/app/src/Entity/Restaurants.php new file mode 100644 index 0000000000000000000000000000000000000000..4419b8171b44c73350bdea6b5e9ad96d2cc7d3bb --- /dev/null +++ b/app/src/Entity/Restaurants.php @@ -0,0 +1,379 @@ + + */ + #[ORM\ManyToMany(targetEntity: Kitchens::class, inversedBy: 'restaurants')] + private Collection $kitchens; + + public function __construct() + { + $this->kitchens = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->id; + } + + public function setId(string $id): static + { + $this->id = $id; + + return $this; + } + + public function isActive(): ?bool + { + return $this->active; + } + + public function setActive(bool $active): static + { + $this->active = $active; + + return $this; + } + + public function getSort(): ?int + { + return $this->sort; + } + + public function setSort(int $sort): static + { + $this->sort = $sort; + + return $this; + } + + public function getCreatedAt(): ?\DateTimeImmutable + { + return $this->createdAt; + } + + public function setCreatedAt(\DateTimeImmutable $createdAt): static + { + $this->createdAt = $createdAt; + + return $this; + } + + public function getUpdateAt(): ?\DateTimeImmutable + { + return $this->updateAt; + } + + public function setUpdateAt(\DateTimeImmutable $updateAt): static + { + $this->updateAt = $updateAt; + + return $this; + } + + public function getType(): ?RestaurantTypes + { + return $this->type; + } + + public function setType(?RestaurantTypes $type): static + { + $this->type = $type; + + return $this; + } + + public function getSettlement(): ?Settlements + { + return $this->settlement; + } + + public function setSettlement(?Settlements $settlement): static + { + $this->settlement = $settlement; + + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(string $description): static + { + $this->description = $description; + + return $this; + } + + public function getReceipt(): ?string + { + return $this->receipt; + } + + public function setReceipt(string $receipt): static + { + $this->receipt = $receipt; + + return $this; + } + + public function getReceiptInfo(): ?string + { + return $this->receiptInfo; + } + + public function setReceiptInfo(string $receiptInfo): static + { + $this->receiptInfo = $receiptInfo; + + return $this; + } + + public function getPhone(): ?string + { + return $this->phone; + } + + public function setPhone(string $phone): static + { + $this->phone = $phone; + + return $this; + } + + public function getEmail(): ?string + { + return $this->email; + } + + public function setEmail(string $email): static + { + $this->email = $email; + + return $this; + } + + public function getAddress(): ?string + { + return $this->address; + } + + public function setAddress(string $address): static + { + $this->address = $address; + + return $this; + } + + public function getTags(): ?string + { + return $this->tags; + } + + public function setTags(string $tags): static + { + $this->tags = $tags; + + return $this; + } + + public function getSite(): ?string + { + return $this->site; + } + + public function setSite(string $site): static + { + $this->site = $site; + + return $this; + } + + public function getCoordinates(): array + { + return $this->coordinates; + } + + public function setCoordinates(array $coordinates): static + { + $this->coordinates = $coordinates; + + return $this; + } + + public function getPreviewImage(): ?string + { + return $this->previewImage; + } + + public function setPreviewImage(string $previewImage): static + { + $this->previewImage = $previewImage; + + return $this; + } + + public function getDetailImage(): ?string + { + return $this->detailImage; + } + + public function setDetailImage(string $detailImage): static + { + $this->detailImage = $detailImage; + + return $this; + } + + public function getGallery(): ?string + { + return $this->gallery; + } + + public function setGallery(string $gallery): static + { + $this->gallery = $gallery; + + return $this; + } + + public function getHowToFind(): ?string + { + return $this->howToFind; + } + + public function setHowToFind(string $howToFind): static + { + $this->howToFind = $howToFind; + + return $this; + } + + /** + * @return Collection + */ + public function getKitchens(): Collection + { + return $this->kitchens; + } + + public function addKitchen(Kitchens $kitchen): static + { + if (!$this->kitchens->contains($kitchen)) { + $this->kitchens->add($kitchen); + } + + return $this; + } + + public function removeKitchen(Kitchens $kitchen): static + { + $this->kitchens->removeElement($kitchen); + + return $this; + } +} diff --git a/app/src/Entity/Settlements.php b/app/src/Entity/Settlements.php new file mode 100644 index 0000000000000000000000000000000000000000..304a26ca2f29851adbef4d81650e49ae65032173 --- /dev/null +++ b/app/src/Entity/Settlements.php @@ -0,0 +1,160 @@ + + */ + #[ORM\OneToMany(targetEntity: Restaurants::class, mappedBy: 'settlement')] + private Collection $restaurants; + + public function __construct() + { + $this->restaurants = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->id; + } + + public function setId(string $id): static + { + $this->id = $id; + + return $this; + } + + public function isActive(): ?bool + { + return $this->active; + } + + public function setActive(bool $active): static + { + $this->active = $active; + + return $this; + } + + public function getCreatedAt(): ?\DateTimeImmutable + { + return $this->createdAt; + } + + public function setCreatedAt(\DateTimeImmutable $createdAt): static + { + $this->createdAt = $createdAt; + + return $this; + } + + public function getUpdateAt(): ?\DateTimeImmutable + { + return $this->updateAt; + } + + public function setUpdateAt(\DateTimeImmutable $updateAt): static + { + $this->updateAt = $updateAt; + + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + + return $this; + } + + public function getCoordinates(): array + { + return $this->coordinates; + } + + public function setCoordinates(array $coordinates): static + { + $this->coordinates = $coordinates; + + return $this; + } + + /** + * @return Collection + */ + 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 %}