Added MsgPhp bundles

This commit is contained in:
Roland Franssen
2017-12-28 16:08:15 +01:00
parent 4b8c356136
commit 970ad5bdb4
7 changed files with 83 additions and 0 deletions
@@ -0,0 +1,13 @@
<?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,
],
]);
};
+9
View File
@@ -0,0 +1,9 @@
{
"bundles": {
"MsgPhp\\EavBundle\\MsgPhpEavBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
}
}
@@ -0,0 +1,12 @@
<?php
namespace App\Entity\Eav;
use MsgPhp\Eav\Entity\Attribute as BaseAttribute;
/**
* @final
*/
class Attribute extends BaseAttribute
{
}
@@ -0,0 +1,12 @@
<?php
namespace App\Entity\Eav;
use MsgPhp\Eav\Entity\AttributeValue as BaseAttributeValue;
/**
* @final
*/
class AttributeValue extends BaseAttributeValue
{
}