Closed gin0115 closed 3 years ago
App Config looses some of the values defined when its passed.
To pass the instance via DI we have to export the existing settings and reimport them. This is done via the export_settings() method.
export_settings()
The issue is that we do not export all settings here,
'path' => $this->paths['path'], 'url' => $this->paths['url'], 'namespaces' => $this->namespaces, 'plugin' => $this->plugin, 'additional' => $this->additional, 'db_tables' => $this->db_tables, 'post_types' => $this->post_types, 'taxonomies' => $this->taxonomies,
the following keys are missing. plugin, 'meta'
plugin
App Config looses some of the values defined when its passed.
To pass the instance via DI we have to export the existing settings and reimport them. This is done via the
export_settings()
method.The issue is that we do not export all settings here,
the following keys are missing.
plugin
, 'meta'