mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 01:49:05 +02:00
Organized parameters better.
Parameters can now be found in their own file config/parameters.yaml. They are prefixed with partdb. and structured into different sections.
This commit is contained in:
parent
ffdb721e38
commit
decc4e90fc
11 changed files with 86 additions and 57 deletions
|
@ -68,7 +68,7 @@ class HomepageController extends AbstractController
|
|||
|
||||
public function getBanner(): string
|
||||
{
|
||||
$banner = $this->getParameter('banner');
|
||||
$banner = $this->getParameter('partdb.banner');
|
||||
if (empty($banner)) {
|
||||
$banner_path = $this->kernel->getProjectDir()
|
||||
.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'banner.md';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue