commit 296bf30c6dc93d446fba2239098d7c8047da8591 Author: Christopher Vagnetoft Date: Tue Oct 31 18:01:17 2017 +0100 Initial commit 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 @@ +