mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-03 18:12:40 +00:00
Fixed some problems caused by the visibility changes.
This commit is contained in:
parent
a1a049c700
commit
689c7ffd45
4 changed files with 13 additions and 6 deletions
|
@ -91,7 +91,7 @@ class RequestHandlerComponent extends Component {
|
|||
* @param array $settings Array of settings.
|
||||
*/
|
||||
public function __construct(ComponentCollection $collection, $settings = array()) {
|
||||
$this->addInputType('xml', array(array($this, '_convertXml')));
|
||||
$this->addInputType('xml', array(array($this, 'convertXml')));
|
||||
parent::__construct($collection, $settings);
|
||||
}
|
||||
|
||||
|
@ -175,7 +175,7 @@ class RequestHandlerComponent extends Component {
|
|||
* @param string $xml
|
||||
* @return array Xml array data
|
||||
*/
|
||||
protected function _convertXml($xml) {
|
||||
public function convertXml($xml) {
|
||||
try {
|
||||
$xml = Xml::build($xml);
|
||||
if (isset($xml->data)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue