diff --git a/LICENSE b/LICENSE index e69de29..2831d9e 100644 --- a/LICENSE +++ b/LICENSE @@ -0,0 +1 @@ +License diff --git a/README.md b/README.md index e69de29..a850bc0 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,11 @@ +# PCM Skeleton Bundle + +This skeleton bundle contains the bare bones of a Symfony bundle. + +To get started, add a bundle name and description inside of `composer.json`. Add yourself as an author too, if you are cool enough. + +Change the **class name** and **namespace** of the bundle file in `/src`. Change the **file name** to match the class name also. + +# Conventions +- `YAML` files must end with `.yml` +- Namespaces should always start with `Pcm\ExampleBundle` (change `Example` to whatever is appropriate) diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..16a7281 --- /dev/null +++ b/composer.json @@ -0,0 +1,41 @@ +{ + "name": "pcm/bundle-name", + "description": "bundle description", + + "type": "symfony-bundle", + "license": "MIT", + "authors": [ + { + "name": "Bradley Goode", + "email": "bg@pcmsystems.co.uk" + }, + { + "name": "Matt Feeney", + "email": "mf@pcmsystems.co.uk" + } + ], + + "require": { + "symfony/dependency-injection": "^6.1", + "symfony/framework-bundle": "^6.1", + "symfony/yaml": "^6.1", + "symfony/http-client": "^6.1" + }, + + "require-dev": { + "phpunit/phpunit": "^9.5", + "symfony/phpunit-bridge": "^6.1" + }, + + "autoload": { + "psr-4": { + "Pcm\\GeocodeBundle\\": "src/" + } + }, + + "autoload-dev": { + "psr-4": { + "Pcm\\GeocodeBundle\\Tests\\": "tests/" + } + } +} diff --git a/config/services.yml b/config/services.yml index e69de29..78b1c03 100644 --- a/config/services.yml +++ b/config/services.yml @@ -0,0 +1,10 @@ +services: + _defaults: + autowire: true + autoconfigure: true + + pcm_example.example_service: + alias: Pcm\ExampleBundle\Service\ExampleService + public: true + + Pcm\ExampleBundle\Service\ExampleService: ~ diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..60cb564 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,19 @@ + + + + + ./src + + + + + + + + + + + ./tests + + + diff --git a/src/PcmExampleBundle.php b/src/PcmExampleBundle.php new file mode 100644 index 0000000..fba84f2 --- /dev/null +++ b/src/PcmExampleBundle.php @@ -0,0 +1,19 @@ +load('services.yml'); + } +} diff --git a/src/PcmSkeletonBundle.php b/src/PcmSkeletonBundle.php deleted file mode 100644 index e69de29..0000000