File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
66and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
77
8- ## 4.1.0 - Unreleased
8+ ## [ 4.1.0] - 2020-04-19
99### Added
10- - Ability to send settings to ` CurlClient ` . Added the ` cookies_path ` setting to customize the file used for cookies. #345
11- - ` Document::selectCss() ` function to select elements using css selectors instead xpath (it requires symfony/css-selector)
12- - ` Document::removeCss() ` function to remove elements using css selectors instead xpath (it requires symfony/css-selector)
13- - Ability to configure OEmbed parameters from the outside
10+ - Ability to send settings to ` CurlClient ` . Added the ` cookies_path ` setting to customize the file used for cookies. [ #345 ]
11+ - ` Document::selectCss() ` function to select elements using css selectors instead xpath (it requires ` symfony/css-selector ` )
12+ - ` Document::removeCss() ` function to remove elements using css selectors instead xpath (it requires ` symfony/css-selector ` )
13+ - Ability to configure OEmbed parameters from the outside using the ` oembed:query_parameters ` setting [ # 346 ]
1414
1515## 4.0.0 - 2020-03-13
1616Full library refactoring.
@@ -36,3 +36,8 @@ Full library refactoring.
3636- ` images ` value
3737- ` providerImage ` (use ` favicon ` or ` icon ` instead)
3838- Support for files (pdf, jpg, video, etc).
39+
40+ [ #345 ] : https://github.com/oscarotero/Embed/issues/345
41+ [ #346 ] : https://github.com/oscarotero/Embed/issues/346
42+
43+ [ 4.1.0 ] : https://github.com/oscarotero/Embed/compare/v4.0.0...v4.1.0
Original file line number Diff line number Diff line change 4343 "brick/varexporter" : " ^0.3.1" ,
4444 "symfony/css-selector" : " ^5.0"
4545 },
46+ "suggest" : {
47+ "symfony/css-selector" : " If you want to get elements using css selectors"
48+ },
4649 "autoload" : {
4750 "psr-4" : {
4851 "Embed\\ " : " src"
Original file line number Diff line number Diff line change @@ -15,10 +15,7 @@ class QueryResult
1515
1616 public function __construct (DOMNodeList $ result , Extractor $ extractor )
1717 {
18- foreach ($ result as $ node ) {
19- $ this ->nodes [] = $ node ;
20- }
21-
18+ $ this ->nodes = iterator_to_array ($ result , false );
2219 $ this ->extractor = $ extractor ;
2320 }
2421
You can’t perform that action at this time.
0 commit comments