Skip to content
This repository was archived by the owner on Jan 6, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions DependencyInjection/SensioDistributionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function load(array $configs, ContainerBuilder $container)
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));

$loader->load('webconfigurator.xml');
$loader->load('security.xml');
}

public function getNamespace()
Expand Down
10 changes: 10 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ Web Configurator

The bundle provides a web configurator to ease the setup of a Symfony
project via a simple web interface.

Security
--------

The bundle includes the SensioLabs Security Checker. When included in a Symfony
application, the check is available:

.. code-block:: bash

$ ./app/console security:check
20 changes: 20 additions & 0 deletions Resources/config/security.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<parameters>
<parameter key="sensio_distribution.security_checker.class">SensioLabs\Security\SecurityChecker</parameter>
<parameter key="sensio_distribution.security_checker.command.class">SensioLabs\Security\Command\SecurityCheckerCommand</parameter>
</parameters>

<services>
<service id="sensio_distribution.security_checker" class="%sensio_distribution.security_checker.class%" />

<service id="sensio_distribution.security_checker.command" class="%sensio_distribution.security_checker.command.class%">
<argument type="service" id="sensio_distribution.security_checker" />
<tag name="console.command" />
</service>
</services>
</container>
13 changes: 5 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sensio/distribution-bundle",
"description": "The base bundle for the Symfony Distributions",
"description": "Base bundle for Symfony Distributions",
"keywords": ["distribution","configuration"],
"type": "symfony-bundle",
"license": "MIT",
Expand All @@ -10,19 +10,16 @@
"email": "[email protected]"
}
],

"require": {
"php": ">=5.3.3",
"symfony/framework-bundle": "~2.2",
"symfony/framework-bundle": "~2.4",
"symfony/class-loader": "~2.2",
"symfony/config": "~2.2",
"symfony/dependency-injection": "~2.2",
"symfony/form": "~2.2",
"symfony/http-kernel": "~2.2",
"symfony/http-foundation": "~2.2",
"symfony/filesystem": "~2.2",
"symfony/process": "~2.2",
"symfony/validator": "~2.2",
"symfony/yaml": "~2.2"
"symfony/yaml": "~2.2",
"sensiolabs/security-checker": "~2.0"
},
"autoload": {
"psr-0": { "Sensio\\Bundle\\DistributionBundle": "" }
Expand Down