src/Graviton/DocumentBundle/DependencyInjection/Compiler/DocumentFieldNamesCompilerPass.php 1 location
|
@@ 42-49 (lines=8) @@
|
| 39 |
|
* |
| 40 |
|
* @return void |
| 41 |
|
*/ |
| 42 |
|
public function process(ContainerBuilder $container) |
| 43 |
|
{ |
| 44 |
|
$map = []; |
| 45 |
|
foreach ($this->documentMap->getDocuments() as $document) { |
| 46 |
|
$map[$document->getClass()] = $this->getFieldNames($document); |
| 47 |
|
} |
| 48 |
|
$container->setParameter('graviton.document.field.names', $map); |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
/** |
| 52 |
|
* Get field names |
src/Graviton/DocumentBundle/DependencyInjection/Compiler/DocumentFormDataMapCompilerPass.php 1 location
|
@@ 44-51 (lines=8) @@
|
| 41 |
|
* |
| 42 |
|
* @return void |
| 43 |
|
*/ |
| 44 |
|
public function process(ContainerBuilder $container) |
| 45 |
|
{ |
| 46 |
|
$map = ['stdclass' => []]; |
| 47 |
|
foreach ($this->documentMap->getDocuments() as $document) { |
| 48 |
|
$map[$document->getClass()] = $this->getFormDataMap($document); |
| 49 |
|
} |
| 50 |
|
$container->setParameter('graviton.document.form.data.map', $map); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
/** |
| 54 |
|
* Get document fields |
src/Graviton/DocumentBundle/DependencyInjection/Compiler/DocumentFormFieldsCompilerPass.php 1 location
|
@@ 58-65 (lines=8) @@
|
| 55 |
|
* |
| 56 |
|
* @return void |
| 57 |
|
*/ |
| 58 |
|
public function process(ContainerBuilder $container) |
| 59 |
|
{ |
| 60 |
|
$map = ['stdclass' => []]; |
| 61 |
|
foreach ($this->documentMap->getDocuments() as $document) { |
| 62 |
|
$map[$document->getClass()] = $this->getFormFields($document); |
| 63 |
|
} |
| 64 |
|
$container->setParameter('graviton.document.form.type.document.field_map', $map); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
/** |
| 68 |
|
* Get document fields |
src/Graviton/DocumentBundle/DependencyInjection/Compiler/TranslatableFieldsCompilerPass.php 1 location
|
@@ 46-53 (lines=8) @@
|
| 43 |
|
* @param ContainerBuilder $container container builder |
| 44 |
|
* @return void |
| 45 |
|
*/ |
| 46 |
|
public function process(ContainerBuilder $container) |
| 47 |
|
{ |
| 48 |
|
$map = []; |
| 49 |
|
foreach ($this->documentMap->getDocuments() as $document) { |
| 50 |
|
$map[$document->getClass()] = $this->getTranslatableFields($document); |
| 51 |
|
} |
| 52 |
|
$container->setParameter('graviton.document.type.translatable.fields', $map); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
/** |
| 56 |
|
* Get document fields |