/** * Register the resource with the Manager * * @since 1.0.0 * * @param I_Config $config * @return bool */ public function register(I_Config $config) { if (is_null($this->registered_assets_config)) { $this->registered_assets_config = $config; return; } $this->registered_assets_config->merge($config->all()); }
/** * Initialize properties * * @since 1.0.0 * * @param I_Config $config * @return null */ protected function init_properties(I_Config $config) { $this->config = $config; array_walk($config->all(), function ($value, $property) { $this->{$property} = $value; }); }