equal
deleted
inserted
replaced
22 $configuration = new Configuration(); |
22 $configuration = new Configuration(); |
23 $config = $this->processConfiguration($configuration, $configs); |
23 $config = $this->processConfiguration($configuration, $configs); |
24 |
24 |
25 $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
25 $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
26 $loader->load('services.yml'); |
26 $loader->load('services.yml'); |
|
27 |
|
28 if(isset($config['document_class'])) |
|
29 { |
|
30 $container->setParameter("wiki_tag.document_class", $config['document_class']); |
|
31 } |
|
32 |
|
33 if(isset($config['document_id_column'])) |
|
34 { |
|
35 $document_id = $config['document_id_column']; |
|
36 } |
|
37 |
|
38 if(!isset($document_id) || is_null($document_id) || strlen($document_id) == 0) { |
|
39 $document_id = "id"; |
|
40 } |
|
41 $container->setParameter("wiki_tag.document_id_column", $document_id); |
|
42 |
|
43 $container->setParameter("wiki_tag.fields", $config['fields']); |
27 } |
44 } |
28 } |
45 } |