Files
symfony-flex-recipes-contrib/archived/msgphp.eav-bundle/4e05a2e93e1ab0300a4210fb64cf9ad1b7d8ee0a.json
T
github-action[bot]andgithub-action[bot] f49d36fa18 Update Flex archives
2021-12-18 17:21:01 +00:00

106 lines
4.4 KiB
JSON

{
"manifests": {
"msgphp/eav-bundle": {
"manifest": {
"bundles": {
"MsgPhp\\EavBundle\\MsgPhpEavBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
}
},
"files": {
"config/packages/msgphp_eav.php": {
"contents": [
"<?php",
"",
"use MsgPhp\\Eav\\Entity\\{Attribute, AttributeValue};",
"use Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;",
"",
"return function (ContainerConfigurator $container) {",
" $container->extension('msgphp_eav', [",
" 'class_mapping' => [",
" Attribute::class => \\App\\Entity\\Eav\\Attribute::class,",
" AttributeValue::class => \\App\\Entity\\Eav\\AttributeValue::class,",
" ],",
" ]);",
"};",
""
],
"executable": false
},
"src/Entity/Eav/Attribute.php": {
"contents": [
"<?php",
"",
"namespace App\\Entity\\Eav;",
"",
"use Doctrine\\ORM\\Mapping as ORM;",
"use MsgPhp\\Eav\\AttributeIdInterface;",
"use MsgPhp\\Eav\\Entity\\Attribute as BaseAttribute;",
"",
"/**",
" * @ORM\\Entity()",
" */",
"class Attribute extends BaseAttribute",
"{",
" /** @ORM\\Id() @ORM\\GeneratedValue() @ORM\\Column(type=\"msgphp_attribute_id\") */",
" private $id;",
"",
" public function __construct(AttributeIdInterface $id)",
" {",
" $this->id = $id;",
" }",
"",
" public function getId(): AttributeIdInterface",
" {",
" return $this->id;",
" }",
"}",
""
],
"executable": false
},
"src/Entity/Eav/AttributeValue.php": {
"contents": [
"<?php",
"",
"namespace App\\Entity\\Eav;",
"",
"use Doctrine\\ORM\\Mapping as ORM;",
"use MsgPhp\\Eav\\AttributeValueIdInterface;",
"use MsgPhp\\Eav\\Entity\\AttributeValue as BaseAttributeValue;",
"",
"/**",
" * @ORM\\Entity()",
" */",
"class AttributeValue extends BaseAttributeValue",
"{",
" /** @ORM\\Id() @ORM\\GeneratedValue() @ORM\\Column(type=\"msgphp_attribute_value_id\") */",
" private $id;",
"",
" public function __construct(AttributeValueIdInterface $id, Attribute $attribute, $value)",
" {",
" parent::__construct($attribute, $value);",
"",
" $this->id = $id;",
" }",
"",
" public function getId(): AttributeValueIdInterface",
" {",
" return $this->id;",
" }",
"}",
""
],
"executable": false
}
},
"ref": "4e05a2e93e1ab0300a4210fb64cf9ad1b7d8ee0a"
}
}
}