Skip to content

Commit

Permalink
Fixed documentation for deprecated feature (Building XML from a remot…
Browse files Browse the repository at this point in the history
…e URL)

As discussed here #6229, the support for remote files was removed for security reasons. 
I changed the comments for the API (http://api.cakephp.org/3.0/class-Cake.Utility.Xml.html) to use the Http Client class that comes bundled with CakePHP.
  • Loading branch information
maurymmarques committed Apr 27, 2015
1 parent 19ac2f6 commit 283bafe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Utility/Xml.php
Expand Up @@ -49,10 +49,14 @@ class Xml
* $xml = Xml::build('/path/to/an/xml/file.xml');
* ```
*
* Building from a remote URL:
* Building XML from a remote URL:
*
* ```
* $xml = Xml::build('http://example.com/example.xml');
* use Cake\Network\Http\Client;
*
* $http = new Client();
* $response = $http->get('http://example.com/example.xml');
* $xml = Xml::build($response->body());
* ```
*
* Building from an array:
Expand Down

0 comments on commit 283bafe

Please sign in to comment.