File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,18 @@ class VCRVCRBundle extends Bundle
1111{
1212 public function boot ()
1313 {
14- $ container = $ this ->container ;
15- $ cassettePath = $ container ->getParameter ('vcr.cassette.path ' );
14+ $ cassettePath = $ this ->container ->getParameter ('vcr.cassette.path ' );
1615
1716 if (!is_dir ($ cassettePath )) {
1817 $ fs = new Filesystem ();
1918 $ fs ->mkdir ($ cassettePath );
2019 }
2120
22- if ($ container ->getParameter ('vcr.enabled ' )) {
23- $ recorder = $ container ->get ('vcr.recorder ' );
21+ if ($ this ->container ->getParameter ('vcr.enabled ' )) {
22+ $ recorder = $ this ->container ->get ('vcr.recorder ' );
23+ $ cassetteName = $ this ->container ->getParameter ('vcr.cassette.name ' );
24+
2425 $ recorder ->turnOn ();
25- $ cassetteName = $ container ->getParameter ('vcr.cassette.name ' );
2626 $ recorder ->insertCassette ($ cassetteName );
2727 }
2828 }
You can’t perform that action at this time.
0 commit comments