mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-18 18:46:48 +03:00
Update Flex endpoint
This commit is contained in:
@@ -1,20 +1,6 @@
|
||||
{
|
||||
"locks": {
|
||||
"sonata-project/classification-bundle": {
|
||||
"version": "3.7",
|
||||
"recipe": {
|
||||
"repo": "3.7",
|
||||
"branch": "master",
|
||||
"version": "3.7",
|
||||
"ref": "e79fbb2e8658677e5d5d9199db7d2735332c4b7d"
|
||||
}
|
||||
}
|
||||
},
|
||||
"manifests": {
|
||||
"sonata-project/classification-bundle": {
|
||||
"repository": "github.com/symfony/recipes-contrib",
|
||||
"package": "sonata-project/classification-bundle",
|
||||
"version": "3.7",
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Sonata\\ClassificationBundle\\SonataClassificationBundle": [
|
||||
@@ -28,33 +14,299 @@
|
||||
},
|
||||
"files": {
|
||||
"src/Entity/SonataClassificationCategory.php": {
|
||||
"contents": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse JMS\\Serializer\\Annotation as Serializer;\nuse Sonata\\ClassificationBundle\\Entity\\BaseCategory;\nuse Sonata\\MediaBundle\\Model\\MediaInterface;\nuse Symfony\\Component\\Validator\\Constraints as Assert;\n\n/**\n * @ORM\\Entity\n * @ORM\\Table(name=\"classification__category\")\n * @ORM\\HasLifecycleCallbacks\n */\nclass SonataClassificationCategory extends BaseCategory\n{\n /**\n * @ORM\\Id\n * @ORM\\Column(type=\"integer\")\n * @ORM\\GeneratedValue(strategy=\"AUTO\")\n * // Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})\n *\n * @var int\n */\n protected $id;\n\n /**\n * @ORM\\OneToMany(\n * targetEntity=\"App\\Entity\\SonataClassificationCategory\",\n * mappedBy=\"parent\", cascade={\"persist\"}, orphanRemoval=true\n * )\n * @ORM\\OrderBy({\"position\"=\"ASC\"})\n *\n * @var SonataClassificationCategory[]\n */\n protected $children;\n\n /**\n * @ORM\\ManyToOne(\n * targetEntity=\"App\\Entity\\SonataClassificationCategory\",\n * inversedBy=\"children\", cascade={\"persist\", \"refresh\", \"merge\", \"detach\"}\n * )\n * @ORM\\JoinColumn(name=\"parent_id\", referencedColumnName=\"id\", onDelete=\"CASCADE\")\n *\n * @var SonataClassificationCategory\n */\n protected $parent;\n\n /**\n * @ORM\\ManyToOne(\n * targetEntity=\"App\\Entity\\SonataClassificationContext\",\n * cascade={\"persist\"}\n * )\n * @ORM\\JoinColumn(name=\"context\", referencedColumnName=\"id\", nullable=false)\n * @Assert\\NotNull()\n *\n * @var SonataClassificationContext\n */\n protected $context;\n\n public function getId()\n {\n return $this->id;\n }\n\n final public function setMedia(MediaInterface $media = null)\n {\n parent::setMedia($media);\n }\n\n /**\n * @ORM\\PrePersist\n */\n public function prePersist(): void\n {\n parent::prePersist();\n }\n\n /**\n * @ORM\\PreUpdate\n */\n public function preUpdate(): void\n {\n parent::preUpdate();\n }\n}\n",
|
||||
"executable": false,
|
||||
"encoding": ""
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Entity;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping as ORM;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\ClassificationBundle\\Entity\\BaseCategory;",
|
||||
"use Sonata\\MediaBundle\\Model\\MediaInterface;",
|
||||
"use Symfony\\Component\\Validator\\Constraints as Assert;",
|
||||
"",
|
||||
"/**",
|
||||
" * @ORM\\Entity",
|
||||
" * @ORM\\Table(name=\"classification__category\")",
|
||||
" * @ORM\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataClassificationCategory extends BaseCategory",
|
||||
"{",
|
||||
" /**",
|
||||
" * @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\\SonataClassificationCategory\",",
|
||||
" * mappedBy=\"parent\", cascade={\"persist\"}, orphanRemoval=true",
|
||||
" * )",
|
||||
" * @ORM\\OrderBy({\"position\"=\"ASC\"})",
|
||||
" *",
|
||||
" * @var SonataClassificationCategory[]",
|
||||
" */",
|
||||
" protected $children;",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\ManyToOne(",
|
||||
" * targetEntity=\"App\\Entity\\SonataClassificationCategory\",",
|
||||
" * inversedBy=\"children\", cascade={\"persist\", \"refresh\", \"merge\", \"detach\"}",
|
||||
" * )",
|
||||
" * @ORM\\JoinColumn(name=\"parent_id\", referencedColumnName=\"id\", onDelete=\"CASCADE\")",
|
||||
" *",
|
||||
" * @var SonataClassificationCategory",
|
||||
" */",
|
||||
" protected $parent;",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\ManyToOne(",
|
||||
" * targetEntity=\"App\\Entity\\SonataClassificationContext\",",
|
||||
" * cascade={\"persist\"}",
|
||||
" * )",
|
||||
" * @ORM\\JoinColumn(name=\"context\", referencedColumnName=\"id\", nullable=false)",
|
||||
" * @Assert\\NotNull()",
|
||||
" *",
|
||||
" * @var SonataClassificationContext",
|
||||
" */",
|
||||
" protected $context;",
|
||||
"",
|
||||
" public function getId()",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"",
|
||||
" final public function setMedia(MediaInterface $media = null)",
|
||||
" {",
|
||||
" parent::setMedia($media);",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PrePersist",
|
||||
" */",
|
||||
" public function prePersist(): void",
|
||||
" {",
|
||||
" parent::prePersist();",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PreUpdate",
|
||||
" */",
|
||||
" public function preUpdate(): void",
|
||||
" {",
|
||||
" parent::preUpdate();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/SonataClassificationContext.php": {
|
||||
"contents": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse JMS\\Serializer\\Annotation as Serializer;\nuse Sonata\\ClassificationBundle\\Entity\\BaseContext;\n\n/**\n * @ORM\\Entity\n * @ORM\\Table(name=\"classification__context\")\n * @ORM\\HasLifecycleCallbacks\n */\nclass SonataClassificationContext extends BaseContext\n{\n /**\n * @ORM\\Id\n * @ORM\\Column(type=\"string\")\n * @ORM\\GeneratedValue(strategy=\"NONE\")\n * // Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})\n *\n * @var int\n */\n protected $id;\n\n public function getId()\n {\n return $this->id;\n }\n\n /**\n * @ORM\\PrePersist\n */\n public function prePersist(): void\n {\n parent::prePersist();\n }\n\n /**\n * @ORM\\PreUpdate\n */\n public function preUpdate(): void\n {\n parent::preUpdate();\n }\n}\n",
|
||||
"executable": false,
|
||||
"encoding": ""
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Entity;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping as ORM;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\ClassificationBundle\\Entity\\BaseContext;",
|
||||
"",
|
||||
"/**",
|
||||
" * @ORM\\Entity",
|
||||
" * @ORM\\Table(name=\"classification__context\")",
|
||||
" * @ORM\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataClassificationContext extends BaseContext",
|
||||
"{",
|
||||
" /**",
|
||||
" * @ORM\\Id",
|
||||
" * @ORM\\Column(type=\"string\")",
|
||||
" * @ORM\\GeneratedValue(strategy=\"NONE\")",
|
||||
" * // Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})",
|
||||
" *",
|
||||
" * @var int",
|
||||
" */",
|
||||
" protected $id;",
|
||||
"",
|
||||
" 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/SonataClassificationTag.php": {
|
||||
"contents": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse JMS\\Serializer\\Annotation as Serializer;\nuse Sonata\\ClassificationBundle\\Entity\\BaseTag;\n\n/**\n * @ORM\\Entity\n * @ORM\\Table(name=\"classification__tag\")\n * @ORM\\HasLifecycleCallbacks\n */\nclass SonataClassificationTag extends BaseTag\n{\n /**\n * @ORM\\Id\n * @ORM\\Column(type=\"integer\")\n * @ORM\\GeneratedValue(strategy=\"AUTO\")\n * // Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})\n *\n * @var int\n */\n protected $id;\n\n /**\n * @ORM\\ManyToOne(\n * targetEntity=\"App\\Entity\\SonataClassificationContext\",\n * cascade={\"persist\"}\n * )\n * @ORM\\JoinColumn(name=\"context\", referencedColumnName=\"id\", nullable=false)\n *\n * @var SonataClassificationContext\n */\n protected $context;\n\n public function getId()\n {\n return $this->id;\n }\n\n /**\n * @ORM\\PrePersist\n */\n public function prePersist(): void\n {\n parent::prePersist();\n }\n\n /**\n * @ORM\\PreUpdate\n */\n public function preUpdate(): void\n {\n parent::preUpdate();\n }\n}\n",
|
||||
"executable": false,
|
||||
"encoding": ""
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Entity;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping as ORM;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\ClassificationBundle\\Entity\\BaseTag;",
|
||||
"",
|
||||
"/**",
|
||||
" * @ORM\\Entity",
|
||||
" * @ORM\\Table(name=\"classification__tag\")",
|
||||
" * @ORM\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataClassificationTag extends BaseTag",
|
||||
"{",
|
||||
" /**",
|
||||
" * @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\\SonataClassificationContext\",",
|
||||
" * cascade={\"persist\"}",
|
||||
" * )",
|
||||
" * @ORM\\JoinColumn(name=\"context\", referencedColumnName=\"id\", nullable=false)",
|
||||
" *",
|
||||
" * @var SonataClassificationContext",
|
||||
" */",
|
||||
" protected $context;",
|
||||
"",
|
||||
" 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/SonataClassificationCollection.php": {
|
||||
"contents": "<?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse JMS\\Serializer\\Annotation as Serializer;\nuse Sonata\\ClassificationBundle\\Entity\\BaseCollection;\n\n/**\n * @ORM\\Entity\n * @ORM\\Table(name=\"classification__collection\")\n * @ORM\\HasLifecycleCallbacks\n */\nclass SonataClassificationCollection extends BaseCollection\n{\n /**\n * @ORM\\Id\n * @ORM\\Column(type=\"integer\")\n * @ORM\\GeneratedValue(strategy=\"AUTO\")\n * // Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})\n *\n * @var int\n */\n protected $id;\n\n /**\n * @ORM\\ManyToOne(\n * targetEntity=\"App\\Entity\\SonataClassificationContext\",\n * cascade={\"persist\"}\n * )\n * @ORM\\JoinColumn(name=\"context\", referencedColumnName=\"id\", nullable=false)\n *\n * @var SonataClassificationContext\n */\n protected $context;\n\n public function getId()\n {\n return $this->id;\n }\n\n /**\n * @ORM\\PrePersist\n */\n public function prePersist(): void\n {\n parent::prePersist();\n }\n\n /**\n * @ORM\\PreUpdate\n */\n public function preUpdate(): void\n {\n parent::preUpdate();\n }\n}\n",
|
||||
"executable": false,
|
||||
"encoding": ""
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Entity;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping as ORM;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\ClassificationBundle\\Entity\\BaseCollection;",
|
||||
"",
|
||||
"/**",
|
||||
" * @ORM\\Entity",
|
||||
" * @ORM\\Table(name=\"classification__collection\")",
|
||||
" * @ORM\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataClassificationCollection extends BaseCollection",
|
||||
"{",
|
||||
" /**",
|
||||
" * @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\\SonataClassificationContext\",",
|
||||
" * cascade={\"persist\"}",
|
||||
" * )",
|
||||
" * @ORM\\JoinColumn(name=\"context\", referencedColumnName=\"id\", nullable=false)",
|
||||
" *",
|
||||
" * @var SonataClassificationContext",
|
||||
" */",
|
||||
" protected $context;",
|
||||
"",
|
||||
" public function getId()",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PrePersist",
|
||||
" */",
|
||||
" public function prePersist(): void",
|
||||
" {",
|
||||
" parent::prePersist();",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PreUpdate",
|
||||
" */",
|
||||
" public function preUpdate(): void",
|
||||
" {",
|
||||
" parent::preUpdate();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/sonata_classification.yaml": {
|
||||
"contents": "sonata_classification:\n class:\n category: App\\Entity\\SonataClassificationCategory\n collection: App\\Entity\\SonataClassificationCollection\n context: App\\Entity\\SonataClassificationContext\n tag: App\\Entity\\SonataClassificationTag\n media: App\\Entity\\SonataMediaMedia\n",
|
||||
"executable": false,
|
||||
"encoding": ""
|
||||
"contents": [
|
||||
"sonata_classification:",
|
||||
" class:",
|
||||
" category: App\\Entity\\SonataClassificationCategory",
|
||||
" collection: App\\Entity\\SonataClassificationCollection",
|
||||
" context: App\\Entity\\SonataClassificationContext",
|
||||
" tag: App\\Entity\\SonataClassificationTag",
|
||||
" media: App\\Entity\\SonataMediaMedia",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"origin": "sonata-project/classification-bundle:3.7@github.com/symfony/recipes-contrib:master",
|
||||
"is_contrib": true
|
||||
"ref": "e79fbb2e8658677e5d5d9199db7d2735332c4b7d"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user