Skip to content

Commit 0ed0b58

Browse files
committed
initial
1 parent 87f203b commit 0ed0b58

File tree

9 files changed

+141
-0
lines changed

9 files changed

+141
-0
lines changed

.php_cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
$finder = Symfony\CS\Finder\DefaultFinder::create()
4+
->in('src')
5+
;
6+
7+
$header = <<<EOT
8+
This file is part of the LightSAML Symfony Bridge IDP Bundle package.
9+
10+
(c) Milos Tomic <[email protected]>
11+
12+
This source file is subject to the GPL-3 license that is bundled
13+
with this source code in the file LICENSE.
14+
EOT;
15+
16+
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
17+
18+
return Symfony\CS\Config\Config::create()
19+
->setUsingCache(true)
20+
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
21+
->fixers(array('-empty_return', '-phpdoc_no_empty_return', 'header_comment'))
22+
->finder($finder)
23+
;

.scrutinizer.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tools:
2+
external_code_coverage: true

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: php
2+
3+
php:
4+
- 5.5
5+
- 5.6
6+
7+
before_script:
8+
- wget http://get.sensiolabs.org/php-cs-fixer.phar -O php-cs-fixer.phar
9+
- COMPOSER_ROOT_VERSION=dev-master composer install
10+
11+
script:
12+
- php php-cs-fixer.phar fix --dry-run -v
13+
- bin/phpunit --coverage-clover build/logs/clover.xml
14+
15+
after_script:
16+
- wget https://scrutinizer-ci.com/ocular.phar
17+
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# SymfonyBridgeIdpBundle
2+
23
LightSAML Symfony Bridge for IDP Bundle
4+
5+
## Tags
6+
7+
**lightsaml.sp_entity_store** - On classes implementing ``EntityDescriptorStoreInterface`` that will provide SP entity descriptors

autoload.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
// if library is in dev environement with its own vendor, include its autoload
4+
if (file_exists(__DIR__ . '/vendor')) {
5+
require_once __DIR__ . '/vendor/autoload.php';
6+
} // if library is in vendor of another project, include the global autolaod
7+
else {
8+
require_once __DIR__ . '/../../autoload.php';
9+
}

composer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "lightsaml/symfony-bridge-idp",
3+
"license": "GPL-3.0+",
4+
"type": "library",
5+
"description": "Light SAML2 Symfony bridge for IDP bundle",
6+
"autoload": {
7+
"psr-0": {
8+
"LightSaml\\SymfonyBridgeIdpBundle\\Tests\\": "tests/",
9+
"LightSaml\\SymfonyBridgeIdpBundle\\": "src/"
10+
}
11+
},
12+
"require": {
13+
"php": ">=5.5.1",
14+
"lightsaml/symfony-bridge": "~1.0.2"
15+
},
16+
"require-dev": {
17+
"phpunit/phpunit": "~4.8"
18+
},
19+
"config": {
20+
"bin-dir": "bin"
21+
},
22+
"prefer-stable": true,
23+
"minimum-stability": "stable"
24+
}

phpunit.xml.dist

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
4+
<phpunit
5+
backupGlobals = "false"
6+
backupStaticAttributes = "false"
7+
colors = "false"
8+
convertErrorsToExceptions = "true"
9+
convertNoticesToExceptions = "true"
10+
convertWarningsToExceptions = "true"
11+
processIsolation = "false"
12+
stopOnFailure = "false"
13+
syntaxCheck = "false"
14+
bootstrap = "autoload.php"
15+
>
16+
17+
<logging>
18+
<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
19+
</logging>
20+
21+
<testsuites>
22+
<testsuite name="Project Test Suite">
23+
<directory>tests</directory>
24+
</testsuite>
25+
</testsuites>
26+
27+
<!--
28+
<php>
29+
<server name="KERNEL_DIR" value="/path/to/your/app/" />
30+
</php>
31+
-->
32+
33+
<filter>
34+
<whitelist>
35+
<directory>src</directory>
36+
</whitelist>
37+
</filter>
38+
39+
40+
</phpunit>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace LightSaml\SymfonyBridgeIdpBundle;
4+
5+
use LightSaml\SymfonyBridgeBundle\DependencyInjection\Compiler\AddMethodCallCompilerPass;
6+
use Symfony\Component\DependencyInjection\ContainerBuilder;
7+
use Symfony\Component\HttpKernel\Bundle\Bundle;
8+
9+
class LightSamlSymfonyBridgeIdpBundle extends Bundle
10+
{
11+
public function build(ContainerBuilder $container)
12+
{
13+
parent::build($container);
14+
15+
$container->addCompilerPass(new AddMethodCallCompilerPass(
16+
'lightsaml.party.sp_entity_descriptor_store',
17+
'lightsaml.sp_entity_store',
18+
'add'
19+
));
20+
}
21+
}

tests/LightSaml/SymfonyBridgeIdpBundle/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)