|
@@ -53,7 +53,7 @@ class ConfiguratorController extends ContainerAware
|
|
|
'form' => $form->createView(),
|
|
|
'index' => $index,
|
|
|
'count' => $configurator->getStepCount(),
|
|
|
- 'version' => file_get_contents($this->container->getParameter('kernel.root_dir').'/../VERSION'),
|
|
|
+ 'version' => $this->getVersion(),
|
|
|
));
|
|
|
}
|
|
|
|
|
@@ -87,7 +87,7 @@ class ConfiguratorController extends ContainerAware
|
|
|
'majors' => $majors,
|
|
|
'minors' => $minors,
|
|
|
'url' => $url,
|
|
|
- 'version' => file_get_contents($this->container->getParameter('kernel.root_dir').'/../VERSION'),
|
|
|
+ 'version' => $this->getVersion(),
|
|
|
));
|
|
|
}
|
|
|
|
|
@@ -100,7 +100,13 @@ class ConfiguratorController extends ContainerAware
|
|
|
'parameters' => $configurator->render(),
|
|
|
'ini_path' => $this->container->getParameter('kernel.root_dir').'/config/parameters.ini',
|
|
|
'is_writable' => $configurator->isFileWritable(),
|
|
|
- 'version' => file_get_contents($this->container->getParameter('kernel.root_dir').'/../VERSION'),
|
|
|
+ 'version' => $this->getVersion(),
|
|
|
));
|
|
|
}
|
|
|
+
|
|
|
+ public function getVersion()
|
|
|
+ {
|
|
|
+ $kernel = $this->container->get('kernel');
|
|
|
+ return $kernel::VERSION;
|
|
|
+ }
|
|
|
}
|