@@ -35,7 +35,7 @@ |
||
| 35 | 35 | * @param BlockDefinitionInterface $blockDefinition |
| 36 | 36 | * @param array ...$args |
| 37 | 37 | * |
| 38 | - * @return string |
|
| 38 | + * @return Control |
|
| 39 | 39 | */ |
| 40 | 40 | public function display(BlockDefinitionInterface $blockDefinition, ...$args) |
| 41 | 41 | { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace eXpansion\Framework\MlComposeBundle\UiComponents; |
| 4 | 4 | |
| 5 | -use eXpansion\Framework\Core\Model\Gui\FmlManialink; |
|
| 6 | -use eXpansion\Framework\Core\Plugins\Gui\FmlManialinkFactory; |
|
| 7 | 5 | use FML\Controls\Control; |
| 8 | 6 | use FML\Controls\Frame; |
| 9 | 7 | use oliverde8\AssociativeArraySimplified\AssociativeArray; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | foreach ($bundles as $bundle) { |
| 39 | 39 | $reflection = new \ReflectionClass($bundle); |
| 40 | - $dir = dirname($reflection->getFilename()) . '/Resources/config/ml-compose/'; |
|
| 40 | + $dir = dirname($reflection->getFilename()).'/Resources/config/ml-compose/'; |
|
| 41 | 41 | |
| 42 | 42 | if (is_dir($dir)) { |
| 43 | 43 | $files = $finder->files() |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | protected function parseFile($filePath, ContainerBuilder $container) |
| 57 | 57 | { |
| 58 | - $xsdPath = realpath(__DIR__ . "/../Resources/config/page-compose.xsd"); |
|
| 58 | + $xsdPath = realpath(__DIR__."/../Resources/config/page-compose.xsd"); |
|
| 59 | 59 | $dom = new \DOMDocument(); |
| 60 | 60 | $dom->loadXML(str_replace("exp:ml_compose_bundle:page-compose.xsd", $xsdPath, file_get_contents($filePath))); |
| 61 | 61 | |
@@ -96,10 +96,10 @@ discard block |
||
| 96 | 96 | break; |
| 97 | 97 | |
| 98 | 98 | case "action": |
| 99 | - $blockDefinition['config']['action'][$name]['method'] = (string)$argument->method[0]; |
|
| 99 | + $blockDefinition['config']['action'][$name]['method'] = (string) $argument->method[0]; |
|
| 100 | 100 | if (isset($argument->service[0])) { |
| 101 | 101 | // Use symfony to actually get a reference. |
| 102 | - $blockDefinition['config']['action'][$name]['service'] = new Reference((string)$argument->service[0]); |
|
| 102 | + $blockDefinition['config']['action'][$name]['service'] = new Reference((string) $argument->service[0]); |
|
| 103 | 103 | } |
| 104 | 104 | break; |
| 105 | 105 | |