mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-15 00:56:29 +03:00
Update Flex endpoint
This commit is contained in:
@@ -1274,18 +1274,9 @@
|
||||
"sonata-project/media-bundle": [
|
||||
"3.13"
|
||||
],
|
||||
"sonata-project/media-odm-pack": [
|
||||
"1.0"
|
||||
],
|
||||
"sonata-project/media-orm-pack": [
|
||||
"1.0"
|
||||
],
|
||||
"sonata-project/notification-bundle": [
|
||||
"3.4"
|
||||
],
|
||||
"sonata-project/notification-orm-pack": [
|
||||
"1.0"
|
||||
],
|
||||
"sonata-project/page-bundle": [
|
||||
"3.9"
|
||||
],
|
||||
|
||||
@@ -1,226 +0,0 @@
|
||||
{
|
||||
"manifests": {
|
||||
"sonata-project/media-odm-pack": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/sonata_media_odm.yaml": {
|
||||
"contents": [
|
||||
"sonata_media:",
|
||||
" class:",
|
||||
" media: App\\Document\\SonataMediaMedia",
|
||||
" gallery: App\\Document\\SonataMediaGallery",
|
||||
" gallery_has_media: App\\Document\\SonataMediaGalleryHasMedia",
|
||||
" db_driver: doctrine_mongodb",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Document/SonataMediaGallery.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Document;",
|
||||
"",
|
||||
"use Doctrine\\ODM\\MongoDB\\Mapping\\Annotations as MongoDB;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\MediaBundle\\Document\\BaseGallery;",
|
||||
"",
|
||||
"/**",
|
||||
" * @MongoDB\\Document",
|
||||
" * @MongoDB\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataMediaGallery extends BaseGallery",
|
||||
"{",
|
||||
" /**",
|
||||
" * @MongoDB\\Id()",
|
||||
" * @Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})",
|
||||
" */",
|
||||
" protected $id;",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\ReferenceMany(",
|
||||
" * targetDocument=\"App\\Document\\SonataMediaGalleryHasMedia\",",
|
||||
" * mappedBy=\"gallery\", cascade={\"persist\"}, orphanRemoval=false, sort={\"position\" = \"ASC\"}",
|
||||
" * )",
|
||||
" */",
|
||||
" protected $galleryHasMedias;",
|
||||
"",
|
||||
" public function getId()",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\PrePersist",
|
||||
" */",
|
||||
" public function prePersist(): void",
|
||||
" {",
|
||||
" parent::prePersist();",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\PreUpdate",
|
||||
" */",
|
||||
" public function preUpdate(): void",
|
||||
" {",
|
||||
" parent::preUpdate();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Document/SonataMediaGalleryHasMedia.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Document;",
|
||||
"",
|
||||
"use Doctrine\\ODM\\MongoDB\\Mapping\\Annotations as MongoDB;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\MediaBundle\\Document\\BaseGalleryHasMedia;",
|
||||
"",
|
||||
"/**",
|
||||
" * @MongoDB\\Document",
|
||||
" * @MongoDB\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataMediaGalleryHasMedia extends BaseGalleryHasMedia",
|
||||
"{",
|
||||
" /**",
|
||||
" * @MongoDB\\Id()",
|
||||
" * @Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})",
|
||||
" */",
|
||||
" protected $id;",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\ReferenceOne(",
|
||||
" * targetDocument=\"App\\Document\\SonataMediaMedia\",",
|
||||
" * inversedBy=\"galleryHasMedias\", cascade={\"persist\"}",
|
||||
" * )",
|
||||
" */",
|
||||
" protected $media;",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\ReferenceOne(",
|
||||
" * targetDocument=\"App\\Document\\SonataMediaGallery\",",
|
||||
" * inversedBy=\"galleryHasMedias\", cascade={\"persist\"}",
|
||||
" * )",
|
||||
" */",
|
||||
" protected $gallery;",
|
||||
"",
|
||||
" public function getId(): ?int",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\PrePersist",
|
||||
" */",
|
||||
" public function prePersist(): void",
|
||||
" {",
|
||||
" parent::prePersist();",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\PreUpdate",
|
||||
" */",
|
||||
" public function preUpdate(): void",
|
||||
" {",
|
||||
" parent::preUpdate();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Document/SonataMediaMedia.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Document;",
|
||||
"",
|
||||
"use Doctrine\\ODM\\MongoDB\\Mapping\\Annotations as MongoDB;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\MediaBundle\\Document\\BaseMedia;",
|
||||
"",
|
||||
"/**",
|
||||
" * @MongoDB\\Document",
|
||||
" * @MongoDB\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataMediaMedia extends BaseMedia",
|
||||
"{",
|
||||
" /**",
|
||||
" * @MongoDB\\Id()",
|
||||
" * @Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})",
|
||||
" */",
|
||||
" protected $id;",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\ReferenceMany(",
|
||||
" * targetDocument=\"App\\Document\\SonataMediaGalleryHasMedia\",",
|
||||
" * mappedBy=\"media\", cascade={\"persist\"}, orphanRemoval=false, sort={\"position\" = \"ASC\"}",
|
||||
" * )",
|
||||
" */",
|
||||
" protected $galleryHasMedias;",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\Field(type=\"string\", nullable=true)",
|
||||
" */",
|
||||
" protected $authorName;",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\Field(type=\"boolean\", nullable=true)",
|
||||
" */",
|
||||
" protected $cdnIsFlushable;",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\Field(type=\"string\", nullable=true)",
|
||||
" */",
|
||||
" protected $description;",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\Field(type=\"string\", nullable=true)",
|
||||
" */",
|
||||
" protected $copyright;",
|
||||
"",
|
||||
" public function getId()",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\PrePersist",
|
||||
" */",
|
||||
" public function prePersist(): void",
|
||||
" {",
|
||||
" parent::prePersist();",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @MongoDB\\PreUpdate",
|
||||
" */",
|
||||
" public function preUpdate(): void",
|
||||
" {",
|
||||
" parent::preUpdate();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "bd1764c3667baf85def26734108af1007bc9fed2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,250 +0,0 @@
|
||||
{
|
||||
"manifests": {
|
||||
"sonata-project/media-orm-pack": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * If you are using <info>sonata-project/classification-bundle</>, fix annotations for",
|
||||
" <info>App\\Entity\\SonataMediaMedia::$category</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/sonata_media_orm.yaml": {
|
||||
"contents": [
|
||||
"sonata_media:",
|
||||
" class:",
|
||||
" media: App\\Entity\\SonataMediaMedia",
|
||||
" gallery: App\\Entity\\SonataMediaGallery",
|
||||
" gallery_has_media: App\\Entity\\SonataMediaGalleryHasMedia",
|
||||
" category: App\\Entity\\SonataClassificationCategory",
|
||||
" db_driver: doctrine_orm",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/SonataMediaGallery.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Entity;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping as ORM;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\MediaBundle\\Entity\\BaseGallery;",
|
||||
"",
|
||||
"/**",
|
||||
" * @ORM\\Entity",
|
||||
" * @ORM\\Table(name=\"media__gallery\")",
|
||||
" * @ORM\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataMediaGallery extends BaseGallery",
|
||||
"{",
|
||||
" /**",
|
||||
" * @ORM\\Id",
|
||||
" * @ORM\\Column(type=\"integer\")",
|
||||
" * @ORM\\GeneratedValue(strategy=\"AUTO\")",
|
||||
" * @Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})",
|
||||
" *",
|
||||
" * @var int",
|
||||
" */",
|
||||
" protected $id;",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\OneToMany(",
|
||||
" * targetEntity=\"App\\Entity\\SonataMediaGalleryHasMedia\",",
|
||||
" * mappedBy=\"gallery\", cascade={\"persist\"}, orphanRemoval=true",
|
||||
" * )",
|
||||
" * @ORM\\OrderBy({\"position\"=\"ASC\"})",
|
||||
" *",
|
||||
" * @var SonataMediaGalleryHasMedia[]",
|
||||
" */",
|
||||
" protected $galleryHasMedias;",
|
||||
"",
|
||||
" public function getId()",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PrePersist",
|
||||
" */",
|
||||
" public function prePersist(): void",
|
||||
" {",
|
||||
" parent::prePersist();",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PreUpdate",
|
||||
" */",
|
||||
" public function preUpdate(): void",
|
||||
" {",
|
||||
" parent::preUpdate();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/SonataMediaGalleryHasMedia.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Entity;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping as ORM;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\MediaBundle\\Entity\\BaseGalleryHasMedia;",
|
||||
"",
|
||||
"/**",
|
||||
" * @ORM\\Entity",
|
||||
" * @ORM\\Table(name=\"media__gallery_media\")",
|
||||
" * @ORM\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataMediaGalleryHasMedia extends BaseGalleryHasMedia",
|
||||
"{",
|
||||
" /**",
|
||||
" * @ORM\\Id",
|
||||
" * @ORM\\Column(type=\"integer\")",
|
||||
" * @ORM\\GeneratedValue(strategy=\"AUTO\")",
|
||||
" * @Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})",
|
||||
" *",
|
||||
" * @var int",
|
||||
" */",
|
||||
" protected $id;",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\ManyToOne(",
|
||||
" * targetEntity=\"App\\Entity\\SonataMediaMedia\",",
|
||||
" * inversedBy=\"galleryHasMedias\", cascade={\"persist\"}",
|
||||
" * )",
|
||||
" * @ORM\\JoinColumn(name=\"media_id\", referencedColumnName=\"id\", onDelete=\"CASCADE\")",
|
||||
" *",
|
||||
" * @var SonataMediaMedia",
|
||||
" */",
|
||||
" protected $media;",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\ManyToOne(",
|
||||
" * targetEntity=\"App\\Entity\\SonataMediaGallery\",",
|
||||
" * inversedBy=\"galleryHasMedias\", cascade={\"persist\"}",
|
||||
" * )",
|
||||
" * @ORM\\JoinColumn(name=\"gallery_id\", referencedColumnName=\"id\", onDelete=\"CASCADE\")",
|
||||
" *",
|
||||
" * @var SonataMediaGallery",
|
||||
" */",
|
||||
" protected $gallery;",
|
||||
"",
|
||||
" public function getId()",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PrePersist",
|
||||
" */",
|
||||
" public function prePersist(): void",
|
||||
" {",
|
||||
" parent::prePersist();",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PreUpdate",
|
||||
" */",
|
||||
" public function preUpdate(): void",
|
||||
" {",
|
||||
" parent::preUpdate();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/SonataMediaMedia.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Entity;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping as ORM;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\MediaBundle\\Entity\\BaseMedia;",
|
||||
"",
|
||||
"/**",
|
||||
" * @ORM\\Entity",
|
||||
" * @ORM\\Table(name=\"media__media\")",
|
||||
" * @ORM\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataMediaMedia extends BaseMedia",
|
||||
"{",
|
||||
" /**",
|
||||
" * @ORM\\Id",
|
||||
" * @ORM\\Column(type=\"integer\")",
|
||||
" * @ORM\\GeneratedValue(strategy=\"AUTO\")",
|
||||
" * @Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})",
|
||||
" *",
|
||||
" * @var int",
|
||||
" */",
|
||||
" protected $id;",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\OneToMany(",
|
||||
" * targetEntity=\"App\\Entity\\SonataMediaGalleryHasMedia\",",
|
||||
" * mappedBy=\"media\", cascade={\"persist\"}, orphanRemoval=false",
|
||||
" * )",
|
||||
" *",
|
||||
" * @var SonataMediaGalleryHasMedia[]",
|
||||
" */",
|
||||
" protected $galleryHasMedias;",
|
||||
"",
|
||||
" /**",
|
||||
" * Fix annotations if you use classification-bundle.",
|
||||
" *",
|
||||
" * // ORM\\ManyToOne(",
|
||||
" * targetEntity=\"App\\Entity\\SonataClassificationCategory\",",
|
||||
" * cascade={\"persist\"}",
|
||||
" * )",
|
||||
" * // ORM\\JoinColumn(name=\"category_id\", referencedColumnName=\"id\", onDelete=\"SET NULL\")",
|
||||
" *",
|
||||
" * @var SonataClassificationCategory",
|
||||
" */",
|
||||
" protected $category;",
|
||||
"",
|
||||
" public function getId()",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PrePersist",
|
||||
" */",
|
||||
" public function prePersist(): void",
|
||||
" {",
|
||||
" parent::prePersist();",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PreUpdate",
|
||||
" */",
|
||||
" public function preUpdate(): void",
|
||||
" {",
|
||||
" parent::preUpdate();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "5961ad63ce003f2735f17026d612f7a87954f5c8"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
{
|
||||
"manifests": {
|
||||
"sonata-project/notification-orm-pack": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/sonata_notification_orm.yaml": {
|
||||
"contents": [
|
||||
"sonata_notification:",
|
||||
" backend: sonata.notification.backend.doctrine",
|
||||
" backends:",
|
||||
" doctrine: null",
|
||||
" class:",
|
||||
" message: App\\Entity\\SonataNotificationMessage",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/SonataNotificationMessage.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Entity;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping as ORM;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\NotificationBundle\\Entity\\BaseMessage;",
|
||||
"",
|
||||
"/**",
|
||||
" * @ORM\\Entity",
|
||||
" * @ORM\\Table(name=\"notification__message\")",
|
||||
" */",
|
||||
"class SonataNotificationMessage extends BaseMessage",
|
||||
"{",
|
||||
" /**",
|
||||
" * @ORM\\Id",
|
||||
" * @ORM\\Column(type=\"integer\")",
|
||||
" * @ORM\\GeneratedValue(strategy=\"AUTO\")",
|
||||
" * // Serializer\\Groups(groups={\"sonata_api_read\",\"sonata_api_write\",\"sonata_search\"})",
|
||||
" *",
|
||||
" * @var int",
|
||||
" */",
|
||||
" protected $id;",
|
||||
"",
|
||||
" public function getId()",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c4c7db6d4949a6cc819270c4c2f0f00eeffe09f8"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user