diff --git a/extension.driver.php b/extension.driver.php index 9775918..ccb4a35 100644 --- a/extension.driver.php +++ b/extension.driver.php @@ -18,7 +18,7 @@ public static function registerProviders() return true; } - public static function providerOf($type = null) + public function providerOf($type = null) { self::registerProviders(); @@ -72,5 +72,5 @@ public function uninstall() { Symphony::Configuration()->remove('remote_datasource'); } - + } diff --git a/extension.meta.xml b/extension.meta.xml index eae1dc3..82789a7 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -1,68 +1,62 @@ - Remote Datasource - A datasource that consumes XML, JSON, CSV or TEXT content. - https://github.com/symphonycms/remote_datasource - https://github.com/symphonycms/remote_datasource/issues - https://www.getsymphony.com/discuss/thread/110527/ - - - Symphony Team - - - - - - Pass namespace to the cacheable instance - - - - [#37](https://github.com/symphonycms/remote_datasource/issues/37) Fix error when multiple datasources are added to the same page with different formats. - - - - Bug fixes - - Added compatibility with Symphony 2.7.x and 3.x.x - - - - Fix for php 5.3 compat - - - - Make CSV style configurable. - - Fix `{$workspace}` path - - - - Fix a bug with late static binding on PHP 5.3. - - - - Fix the first cache of a result always resulting in an error - - Abstract the transformers for better extensibility - - - - Expose the CURL error via `httpError()` - - Fix error with CSV importing - - - - Add support for text format (a copy of the html response body) - - Add some documentation - - - - Clean-up - - - - Add support for Symphony 2.4 - - Support CSV data format - - Allow `$gateway` to be manipulated and `$data` to previewed - - When the Datasource fails, data is added to the `?debug` page to assist in debugging - - Allow no cache to be set - - Sanitize XPath to allow for more complex queries - - - - Officially release the extension - - Add `url` to the resulting XML result so you can see what URL was actually fetched - - Fix bug where a result would always be `stale` - - Allow timeout to be user configurable in the Data Source Editor - - Various PHP E_NOTICE fixes - - - - Initial release - - + Remote Datasource + A datasource that consumes XML, JSON, CSV or TEXT content. + https://github.com/symphonycms/remote_datasource + https://github.com/symphonycms/remote_datasource/issues + http://www.getsymphony.com/discuss/thread/110527/ + + + Symphony Team + + + + + - Update for Symphony 4.x + - PHP7 Compatibility + + + - Fix for php 5.3 compat + + + - Make CSV style configurable. + - Fix `{$workspace}` path + + + - Fix a bug with late static binding on PHP 5.3. + + + - Fix the first cache of a result always resulting in an error + - Abstract the transformers for better extensibility + + + - Expose the CURL error via `httpError()` + - Fix error with CSV importing + + + - Add support for text format (a copy of the html response body) + - Add some documentation + + + - Clean-up + + + - Add support for Symphony 2.4 + - Support CSV data format + - Allow `$gateway` to be manipulated and `$data` to previewed + - When the Datasource fails, data is added to the `?debug` page to assist in debugging + - Allow no cache to be set + - Sanitize XPath to allow for more complex queries + + + - Officially release the extension + - Add `url` to the resulting XML result so you can see what URL was actually fetched + - Fix bug where a result would always be `stale` + - Allow timeout to be user configurable in the Data Source Editor + - Various PHP E_NOTICE fixes + + + - Initial release + + diff --git a/templates/blueprints.datasource.tpl b/templates/blueprints.datasource.tpl index 9d3a065..e4f4b11 100644 --- a/templates/blueprints.datasource.tpl +++ b/templates/blueprints.datasource.tpl @@ -15,7 +15,7 @@ class datasource extends RemoteDatasource { - public function __construct($env=NULL, $process_params=true) + public function __construct($env = null, $process_params = true) { parent::__construct($env, $process_params); $this->_dependencies = array();