Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a01ed35

Browse files
committed
Adding the necessary files so that Guard can be its own installable component
1 parent d763134 commit a01ed35

File tree

5 files changed

+113
-0
lines changed

5 files changed

+113
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
vendor/
2+
composer.lock
3+
phpunit.xml
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2004-2015 Fabien Potencier
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is furnished
8+
to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Security Component - Guard
2+
==========================
3+
4+
The Guard component brings many layers of authentication together, making
5+
it much easier to create complex authentication systems where you have
6+
total control.
7+
8+
Resources
9+
---------
10+
11+
Documentation:
12+
13+
https://symfony.com/doc/2.8/book/security.html
14+
15+
Tests
16+
-----
17+
18+
You can run the unit tests with the following command:
19+
20+
$ cd path/to/Symfony/Component/Security/Guard/
21+
$ composer.phar install --dev
22+
$ phpunit
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "symfony/security-guard",
3+
"type": "library",
4+
"description": "Symfony Security Component - Guard",
5+
"keywords": [],
6+
"homepage": "https://symfony.com",
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "Fabien Potencier",
11+
"email": "[email protected]"
12+
},
13+
{
14+
"name": "Symfony Community",
15+
"homepage": "https://symfony.com/contributors"
16+
}
17+
],
18+
"require": {
19+
"php": ">=5.3.9",
20+
"symfony/security-core": "~2.8|~3.0.0",
21+
"symfony/security-http": "~2.8|~3.0.0"
22+
},
23+
"require-dev": {
24+
"symfony/phpunit-bridge": "~2.8|~3.0.0",
25+
"psr/log": "~1.0"
26+
},
27+
"autoload": {
28+
"psr-4": { "Symfony\\Component\\Security\\Guard\\": "" }
29+
},
30+
"minimum-stability": "dev",
31+
"extra": {
32+
"branch-alias": {
33+
"dev-master": "2.8-dev"
34+
}
35+
}
36+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="false"
12+
bootstrap="vendor/autoload.php"
13+
>
14+
<php>
15+
<ini name="error_reporting" value="-1" />
16+
</php>
17+
18+
<testsuites>
19+
<testsuite name="Symfony Security Component Guard Suite">
20+
<directory>./Tests/</directory>
21+
</testsuite>
22+
</testsuites>
23+
24+
<filter>
25+
<whitelist>
26+
<directory>./</directory>
27+
<exclude>
28+
<directory>./vendor</directory>
29+
<directory>./Tests</directory>
30+
</exclude>
31+
</whitelist>
32+
</filter>
33+
</phpunit>

0 commit comments

Comments
 (0)