Pink-Crab / Perique-Framework

The Perqiue Plugin Framework for WordPress
5 stars 0 forks source link

App_Config Looses values #34

Closed gin0115 closed 3 years ago

gin0115 commented 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.

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'