Skip to content

Commit

Permalink
[Feature] Properties (#51)
Browse files Browse the repository at this point in the history
* WIP: add properties controller, hydradtors, services etc.

* Add functionality to get properties of single element

* Refine responses

* Apply php-cs-fixer changes

* Fix qodana issues

* Update qodana baseline

* Update, add put, delete etc.

* Apply php-cs-fixer changes

* Update the put to id in path

* Apply php-cs-fixer changes

* Shorten line

* Apply php-cs-fixer changes

* Add return type

* Update throw doc blocks

* Update path

* Update qodana baseline

* Restructure properties

* Apply php-cs-fixer changes

* Update request body structure

* Move saving to repository

* Apply php-cs-fixer changes

* Update qodana baseline

* Apply php-cs-fixer changes

* Add PropertyExtractorTest

* Apply php-cs-fixer changes

* Refactor services, move factory and extractor to services

* Apply php-cs-fixer changes

* Remove additional hydrator service

* Remove empty line

* Remove use statement

* Remove unecessary spaces and replace service resolver with interface

* use interface

* Use predefined resolver and add hydrator test

* Apply php-cs-fixer changes

* Update baseline

* Add PropertyServiceTeset

* Apply php-cs-fixer changes

* Update qodana baseline

* Refactor namespaces, controller names and make service more consistent with return types

* Fix tests

* Update qodana baseline

* Housekeeping

* Apply php-cs-fixer changes

* Remove unused import

* Add response modifying events

* Apply php-cs-fixer changes

* Fix issues

* Apply php-cs-fixer changes

* Make updating consistent with void, moving schemas to topic folder

* Add event and remove unecessary test

* Update qodana baseline

---------

Co-authored-by: mattamon <[email protected]>
  • Loading branch information
mattamon and mattamon authored May 17, 2024
1 parent 88590df commit da91d99
Show file tree
Hide file tree
Showing 38 changed files with 3,684 additions and 1,134 deletions.
23 changes: 23 additions & 0 deletions config/properties.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
services:
_defaults:
autowire: true
autoconfigure: true
public: false

# controllers are imported separately to make sure they're public
# and have a tag that allows actions to type-hint services
Pimcore\Bundle\StudioBackendBundle\Property\Controller\:
resource: '../src/Property/Controller'
public: true
tags: [ 'controller.service_arguments' ]


Pimcore\Bundle\StudioBackendBundle\Property\Repository\PropertyRepositoryInterface:
class: Pimcore\Bundle\StudioBackendBundle\Property\Repository\PropertyRepository

Pimcore\Bundle\StudioBackendBundle\Property\Service\PropertyServiceInterface:
class: Pimcore\Bundle\StudioBackendBundle\Property\Service\PropertyService

Pimcore\Bundle\StudioBackendBundle\Property\Hydrator\PropertyHydratorInterface:
class: Pimcore\Bundle\StudioBackendBundle\Property\Hydrator\PropertyHydrator

Loading

0 comments on commit da91d99

Please sign in to comment.