mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 07:36:34 +03:00
89 lines
3.3 KiB
JSON
89 lines
3.3 KiB
JSON
{
|
|
"manifests": {
|
|
"beelab/tag-bundle": {
|
|
"manifest": {
|
|
"bundles": {
|
|
"Beelab\\TagBundle\\BeelabTagBundle": [
|
|
"all"
|
|
]
|
|
},
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/",
|
|
"src/": "%SRC_DIR%/"
|
|
},
|
|
"post-install-output": [
|
|
" * <fg=blue>Customize</> your new Tag entity",
|
|
" * <fg=blue>Read</> documentation at <comment>https://github.com/Bee-Lab/BeelabTagBundle/blob/master/Resources/docs/index.md</>"
|
|
]
|
|
},
|
|
"files": {
|
|
"src/Entity/Tag.php": {
|
|
"contents": [
|
|
"<?php",
|
|
"",
|
|
"namespace App\\Entity;",
|
|
"",
|
|
"use Beelab\\TagBundle\\Tag\\TagInterface;",
|
|
"use Doctrine\\ORM\\Mapping as ORM;",
|
|
"",
|
|
"/**",
|
|
" * @ORM\\Table()",
|
|
" * @ORM\\Entity()",
|
|
" */",
|
|
"class Tag implements TagInterface",
|
|
"{",
|
|
" /**",
|
|
" * @var int",
|
|
" *",
|
|
" * @ORM\\Column(type=\"integer\")",
|
|
" * @ORM\\Id",
|
|
" * @ORM\\GeneratedValue(strategy=\"AUTO\")",
|
|
" */",
|
|
" protected $id;",
|
|
"",
|
|
" /**",
|
|
" * @var string|null",
|
|
" *",
|
|
" * @ORM\\Column()",
|
|
" */",
|
|
" protected $name;",
|
|
"",
|
|
" public function __toString(): string",
|
|
" {",
|
|
" return $this->name;",
|
|
" }",
|
|
"",
|
|
" public function getId(): int",
|
|
" {",
|
|
" return $this->id;",
|
|
" }",
|
|
"",
|
|
" public function setName(?string $name): void",
|
|
" {",
|
|
" $this->name = $name;",
|
|
" }",
|
|
"",
|
|
" public function getName(): ?string",
|
|
" {",
|
|
" return $this->name;",
|
|
" }",
|
|
"}",
|
|
"",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"config/packages/beelab_tag.yaml": {
|
|
"contents": [
|
|
"beelab_tag:",
|
|
" tag_class: App\\Entity\\Tag",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "9bd5cf1ad8576a8ad13e317cf8d7b854883cab9e"
|
|
}
|
|
}
|
|
}
|