From 296bf30c6dc93d446fba2239098d7c8047da8591 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Tue, 31 Oct 2017 18:01:17 +0100 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ README.md | 3 ++ composer.json | 21 ++++++++++++++ src/DependencyInjection/Configuration.php | 29 +++++++++++++++++++ .../NoccyLabsLprExtension.php | 28 ++++++++++++++++++ src/Lpr/LprService.php | 15 ++++++++++ src/NoccyLabsLprBundle.php | 9 ++++++ src/Resources/config/services.yml | 6 ++++ 8 files changed, 113 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 composer.json create mode 100644 src/DependencyInjection/Configuration.php create mode 100644 src/DependencyInjection/NoccyLabsLprExtension.php create mode 100644 src/Lpr/LprService.php create mode 100644 src/NoccyLabsLprBundle.php create mode 100644 src/Resources/config/services.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ff72e2d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/composer.lock +/vendor diff --git a/README.md b/README.md new file mode 100644 index 0000000..e17abf1 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +noccylabs/lpr-bundle +==================== + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..973fb49 --- /dev/null +++ b/composer.json @@ -0,0 +1,21 @@ +{ + "name": "noccylabs/lpr-bundle", + "description": "Integrate noccylabs/lpr with Symfony 3", + "type": "bundle", + "license": "GPL-3.0", + "authors": [ + { + "name": "Christopher Vagnetoft", + "email": "cvagnetoft@gmail.com" + } + ], + "require": { + "noccylabs/lpr": "@dev", + "symfony/symfony": ">3.0" + }, + "autoload": { + "psr-4": { + "NoccyLabs\\Bundle\\LprBundle\\": "src/" + } + } +} diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php new file mode 100644 index 0000000..33a1d90 --- /dev/null +++ b/src/DependencyInjection/Configuration.php @@ -0,0 +1,29 @@ +root('noccy_labs_lpr'); + + // Here you should define the parameters that are allowed to + // configure your bundle. See the documentation linked above for + // more information on that topic. + + return $treeBuilder; + } +} diff --git a/src/DependencyInjection/NoccyLabsLprExtension.php b/src/DependencyInjection/NoccyLabsLprExtension.php new file mode 100644 index 0000000..8e545f4 --- /dev/null +++ b/src/DependencyInjection/NoccyLabsLprExtension.php @@ -0,0 +1,28 @@ +processConfiguration($configuration, $configs); + + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); + $loader->load('services.yml'); + } +} diff --git a/src/Lpr/LprService.php b/src/Lpr/LprService.php new file mode 100644 index 0000000..de5aa6b --- /dev/null +++ b/src/Lpr/LprService.php @@ -0,0 +1,15 @@ +