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.
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
7
7
8
- ## 4.1.0 - Unreleased
8
+ ## [ 4.1.0] - 2020-04-19
9
9
### 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 ]
14
14
15
15
## 4.0.0 - 2020-03-13
16
16
Full library refactoring.
@@ -36,3 +36,8 @@ Full library refactoring.
36
36
- ` images ` value
37
37
- ` providerImage ` (use ` favicon ` or ` icon ` instead)
38
38
- 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 43
43
"brick/varexporter" : " ^0.3.1" ,
44
44
"symfony/css-selector" : " ^5.0"
45
45
},
46
+ "suggest" : {
47
+ "symfony/css-selector" : " If you want to get elements using css selectors"
48
+ },
46
49
"autoload" : {
47
50
"psr-4" : {
48
51
"Embed\\ " : " src"
Original file line number Diff line number Diff line change @@ -15,10 +15,7 @@ class QueryResult
15
15
16
16
public function __construct (DOMNodeList $ result , Extractor $ extractor )
17
17
{
18
- foreach ($ result as $ node ) {
19
- $ this ->nodes [] = $ node ;
20
- }
21
-
18
+ $ this ->nodes = iterator_to_array ($ result , false );
22
19
$ this ->extractor = $ extractor ;
23
20
}
24
21
You can’t perform that action at this time.
0 commit comments