Skip to content

Commit 7001449

Browse files
committed
remove accessing global variables
1 parent 6063c92 commit 7001449

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![Latest Version](https://img.shields.io/github/release/harryosmar/php-bootstrap.svg?style=flat-square)](https://github.com/harryosmar/php-bootstrap/releases)
44
[![Build Status](https://travis-ci.org/harryosmar/php-bootstrap.svg?branch=master)](https://travis-ci.org/harryosmar/php-bootstrap)
55
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/harryosmar/php-bootstrap/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/harryosmar/php-bootstrap/?branch=master)
6-
[![Code Coverage](https://scrutinizer-ci.com/g/harryosmar/php-bootstrap/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/harryosmar/php-bootstrap/?branch=master)
76
[![Build Status](https://scrutinizer-ci.com/g/harryosmar/php-bootstrap/badges/build.png?b=master)](https://scrutinizer-ci.com/g/harryosmar/php-bootstrap/build-status/master)
87

98
## Features

src/Providers/Library.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ public function register()
3535
$this->getContainer()->share(
3636
'request',
3737
function () {
38-
return ServerRequestFactory::fromGlobals(
39-
$_SERVER, $_GET, $_POST, $_COOKIE, $_FILES
40-
);
38+
return ServerRequestFactory::fromGlobals();
4139
}
4240
);
4341

0 commit comments

Comments
 (0)