changing config files in ext

Questions around the Aimeos bundle for the Symfony framework
Forum rules
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
MSchrading
Posts: 19
Joined: 14 Aug 2019, 08:13

changing config files in ext

Post by MSchrading » 17 Jan 2020, 10:15

Hi aimeos

I've read the doc for this but can't come through.
Could you please give me an example to get this configuration changed in my symfony 4.3 application
(LAMP php 7.2) for this i.g.:

Code: Select all

ext/ai-admin-jqadm/config/admin/jqadm.php
I put a changed one into:

Code: Select all

ext/<myproject>/admin/jqadm/config/admin/jqadm.php
but nothing changed!

And how to put this in composer classmap so that all files in <myproject> folder will be included in autoloader?

please for a help
Michael

User avatar
aimeos
Administrator
Posts: 8020
Joined: 01 Jan 1970, 00:00

Re: changing config files in ext

Post by aimeos » 18 Jan 2020, 08:24

Please add your configuration to ./ext/<myproject>/config/admin.php and use

Code: Select all

return [
    'jqadm' => [
        ...
    ]
];
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MSchrading
Posts: 19
Joined: 14 Aug 2019, 08:13

Re: changing config files in ext

Post by MSchrading » 20 Jan 2020, 08:22

Please give me this help:

Is the path relativ? And from where "./ext/<myproject>/..." and to which folder and do all other folder below belong to this directive?

i.e.: I have this file: ./ext/ai-admin-jqadm/config/admin/jqadm.php

which I have copied into:

./ext/<myproject>/admin/jqadm/config/admin/jqadm.php

How should this looks like in our ext/<myproject>/config/admin.php file?

Thank you

User avatar
aimeos
Administrator
Posts: 8020
Joined: 01 Jan 1970, 00:00

Re: changing config files in ext

Post by aimeos » 21 Jan 2020, 09:35

Configuration options like "admin/jqadm/attribute/standard/subparts" directly match directories, files and array keys, e.g. in ./config/ (which is the configured base directory in the manifest.php file where the configuration options are relative to):
- file admin.php -> "admin" part
- ['jqadm' => ['attribute' => ['standard' => ['subparts' => ...]]]] -> rest of the configuration option parts

You shouldn't copy complete configuration files but only overwrite the options you need instead. The structure of the original file and your own file is the same.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply