From a45f9b62cce914e7c0d1bae3e16a8df51438e25d Mon Sep 17 00:00:00 2001 From: Zeljko Mitic Date: Sat, 30 Mar 2024 19:28:44 +0100 Subject: [PATCH] Dev (#7) * Symfony CLI * Resolver * More updates --- .gitignore | 1 + .idea/codeception.xml | 6 + .idea/inventory.iml | 8 + .idea/php.xml | 8 + .idea/phpspec.xml | 6 + .idea/symfony2.xml | 1 + assets/app.js | 2 + assets/styles/app.css | 9 +- composer.json | 18 +- composer.lock | 501 +++++++++++++++++- config/bundles.php | 2 + config/packages/babdev_pagerfanta.yaml | 3 + psalm.xml | 6 + src/Attribute/Page.php | 21 + .../Products/ProductCrudController.php | 36 +- .../Products/ProductDetailsController.php | 9 +- .../FilterPassThruRouterDecorator.php | 3 +- src/Repository/AbstractRepository.php | 22 + src/ValueResolver/PageValueResolver.php | 40 ++ .../ServiceEntityRepositoryProxy.stubphp | 32 ++ stubs/Doctrine/ORM/AbstractQuery.stubphp | 48 ++ stubs/Doctrine/ORM/EntityRepository.stubphp | 23 + stubs/Doctrine/ORM/Query.stubphp | 20 + stubs/Doctrine/ORM/QueryBuilder.stubphp | 27 + symfony.lock | 6 + templates/app/embedded/table.html.twig | 0 templates/app/embedded/table_card.html.twig | 33 ++ .../products/details/_details_base.html.twig | 2 +- templates/app/products/form.html.twig | 8 +- templates/app/products/list.html.twig | 83 ++- 30 files changed, 903 insertions(+), 81 deletions(-) create mode 100644 config/packages/babdev_pagerfanta.yaml create mode 100644 src/Attribute/Page.php create mode 100644 src/ValueResolver/PageValueResolver.php create mode 100644 stubs/Doctrine/Bundle/DoctrineBundle/Repository/ServiceEntityRepositoryProxy.stubphp create mode 100644 stubs/Doctrine/ORM/AbstractQuery.stubphp create mode 100644 stubs/Doctrine/ORM/EntityRepository.stubphp create mode 100644 stubs/Doctrine/ORM/Query.stubphp create mode 100644 stubs/Doctrine/ORM/QueryBuilder.stubphp create mode 100644 templates/app/embedded/table.html.twig create mode 100644 templates/app/embedded/table_card.html.twig diff --git a/.gitignore b/.gitignore index 67f79d3..9b68313 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ ###> symfony/asset-mapper ### /public/assets/ /assets/vendor/ +/.idea ###< symfony/asset-mapper ### diff --git a/.idea/codeception.xml b/.idea/codeception.xml index 9d23cc2..98ba8dd 100644 --- a/.idea/codeception.xml +++ b/.idea/codeception.xml @@ -39,6 +39,12 @@ + + + + diff --git a/.idea/inventory.iml b/.idea/inventory.iml index f6442d7..a30e21f 100644 --- a/.idea/inventory.iml +++ b/.idea/inventory.iml @@ -131,6 +131,14 @@ + + + + + + + + diff --git a/.idea/php.xml b/.idea/php.xml index a106b2e..1448d1d 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -140,6 +140,14 @@ + + + + + + + + diff --git a/.idea/phpspec.xml b/.idea/phpspec.xml index afb0d3c..fdb0fed 100644 --- a/.idea/phpspec.xml +++ b/.idea/phpspec.xml @@ -38,6 +38,12 @@ + + + + \ No newline at end of file diff --git a/.idea/symfony2.xml b/.idea/symfony2.xml index c3f403f..b7f705d 100644 --- a/.idea/symfony2.xml +++ b/.idea/symfony2.xml @@ -7,5 +7,6 @@