Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
Console Command NS changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Sep 24, 2017
1 parent 12d27f6 commit 276ae49
Show file tree
Hide file tree
Showing 62 changed files with 165 additions and 45 deletions.
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/Bundle/Checker/CheckerBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* Class CheckerBundle.
*/
final class CheckerBundle extends Bundle
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Bundle/Checker/DependencyInjection/CheckerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

/**
* Class CheckerExtension.
*/
final class CheckerExtension extends Extension
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class ClaimCheckerCompilerPass.
*/
final class ClaimCheckerCompilerPass implements CompilerPassInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class HeaderCheckerCompilerPass.
*/
final class HeaderCheckerCompilerPass implements CompilerPassInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Bundle/Console/ConsoleBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* Class ConsoleBundle.
*/
final class ConsoleBundle extends Bundle
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class KeyAnalyzerCompilerPass.
*/
final class KeyAnalyzerCompilerPass implements CompilerPassInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Bundle/Console/DependencyInjection/ConsoleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

/**
* Class ConsoleExtension.
*/
final class ConsoleExtension extends Extension
{
/**
Expand Down
36 changes: 18 additions & 18 deletions src/Bundle/Console/Resources/config/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,74 +4,74 @@ services:
autoconfigure: true
public: true

Jose\Component\Console\Command\EcKeyGeneratorCommand:
Jose\Component\Console\EcKeyGeneratorCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\EcKeysetGeneratorCommand:
Jose\Component\Console\EcKeysetGeneratorCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\OctKeyGeneratorCommand:
Jose\Component\Console\OctKeyGeneratorCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\OctKeysetGeneratorCommand:
Jose\Component\Console\OctKeysetGeneratorCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\OkpKeyGeneratorCommand:
Jose\Component\Console\OkpKeyGeneratorCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\OkpKeysetGeneratorCommand:
Jose\Component\Console\OkpKeysetGeneratorCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\RsaKeyGeneratorCommand:
Jose\Component\Console\RsaKeyGeneratorCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\RsaKeysetGeneratorCommand:
Jose\Component\Console\RsaKeysetGeneratorCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\KeyFileLoaderCommand:
Jose\Component\Console\KeyFileLoaderCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\P12CertificateLoaderCommand:
Jose\Component\Console\P12CertificateLoaderCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\X509CertificateLoaderCommand:
Jose\Component\Console\X509CertificateLoaderCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\OptimizeRsaKeyCommand:
Jose\Component\Console\OptimizeRsaKeyCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\JKULoaderCommand:
Jose\Component\Console\JKULoaderCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\X5ULoaderCommand:
Jose\Component\Console\X5ULoaderCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\KeyAnalyzerCommand:
Jose\Component\Console\KeyAnalyzerCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\KeysetAnalyzerCommand:
Jose\Component\Console\KeysetAnalyzerCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\PemConverterCommand:
Jose\Component\Console\PemConverterCommand:
tags:
- {name: 'console.command'}

Jose\Component\Console\Command\GetThumbprintCommand:
Jose\Component\Console\GetThumbprintCommand:
tags:
- {name: 'console.command'}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class CompressionMethodCompilerPass.
*/
final class CompressionMethodCompilerPass implements CompilerPassInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Bundle/JoseFramework/Controller/JWKSetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

use Symfony\Component\HttpFoundation\Response;

/**
* Class JWKSetController.
*/
final class JWKSetController
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use Jose\Component\Core\Converter\JsonConverterInterface;
use Jose\Component\Core\JWKSet;

/**
* Class JWKSetControllerFactory.
*/
final class JWKSetControllerFactory
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class AlgorithmCompilerPass.
*/
final class AlgorithmCompilerPass implements CompilerPassInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
* Class Configuration.
*/
final class Configuration implements ConfigurationInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;

/**
* Class AbstractSource.
*/
abstract class AbstractSource
{
/**
Expand All @@ -27,6 +30,12 @@ abstract class AbstractSource
*/
abstract protected function createDefinition(ContainerBuilder $container, array $config): Definition;

/**
* @param ContainerBuilder $container
* @param string $type
* @param string $name
* @param array $config
*/
public function create(ContainerBuilder $container, string $type, string $name, array $config)
{
$service_id = sprintf('jose.%s.%s', $type, $name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;

/**
* Class JWKSetSource.
*/
final class JWKSetSource implements SourceInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class AbstractJWKSetSource.
*/
abstract class AbstractJWKSetSource extends AbstractSource implements JWKSetSourceInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class JWKSet.
*/
final class JWKSet extends AbstractJWKSetSource
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* Interface JWKSetSourceInterface.
*/
interface JWKSetSourceInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;

/**
* Class JWKSource.
*/
final class JWKSource implements SourceInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class CertificateFile.
*/
final class CertificateFile extends AbstractSource implements JWKSourceInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class JWK.
*/
final class JWK extends AbstractSource implements JWKSourceInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class JWKSet.
*/
final class JWKSet extends AbstractSource implements JWKSourceInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* Interface JWKSourceInterface.
*/
interface JWKSourceInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class KeyFile.
*/
final class KeyFile extends AbstractSource implements JWKSourceInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class Values.
*/
final class Values extends AbstractSource implements JWKSourceInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;

/**
* Class X5C.
*/
final class X5C extends AbstractSource implements JWKSourceInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* Interface SourceInterface.
*/
interface SourceInterface
{
/**
Expand Down

0 comments on commit 276ae49

Please sign in to comment.