From 19b42cbae173451c1c8c0924ad3cf63f1b8aa64c Mon Sep 17 00:00:00 2001 From: core23 Date: Wed, 15 Nov 2017 17:59:33 +0100 Subject: [PATCH] Refactor folder structure --- .gitattributes | 2 +- .gitignore | 2 +- .travis/install_docs.sh | 2 +- CONTRIBUTING.md | 6 +++--- Makefile | 2 +- composer.json | 7 ++----- {Resources/doc => docs}/Makefile | 0 {Resources/doc => docs}/_static/.gitkeep | 0 {Resources/doc => docs}/conf.py | 0 {Resources/doc => docs}/index.rst | 0 .../reference/advanced_configuration.rst | 0 {Resources/doc => docs}/reference/api.rst | 0 {Resources/doc => docs}/reference/command_line.rst | 0 {Resources/doc => docs}/reference/installation.rst | 0 {Resources/doc => docs}/reference/introduction.rst | 0 {Resources/doc => docs}/reference/monitoring.rst | 0 .../doc => docs}/reference/multiple_queues.rst | 0 {Resources/doc => docs}/reference/usage.rst | 0 {Resources/doc => docs}/requirements.txt | 0 phpunit.xml.dist | 13 +++---------- {Admin => src/Admin}/MessageAdmin.php | 0 {Backend => src/Backend}/AMQPBackend.php | 0 {Backend => src/Backend}/AMQPBackendDispatcher.php | 0 {Backend => src/Backend}/BackendHealthCheck.php | 0 {Backend => src/Backend}/BackendInterface.php | 0 {Backend => src/Backend}/MessageManagerBackend.php | 0 .../Backend}/MessageManagerBackendDispatcher.php | 0 {Backend => src/Backend}/PostponeRuntimeBackend.php | 0 {Backend => src/Backend}/QueueBackendDispatcher.php | 0 .../Backend}/QueueDispatcherInterface.php | 0 {Backend => src/Backend}/RuntimeBackend.php | 0 {Command => src/Command}/CleanupCommand.php | 0 {Command => src/Command}/ConsumerHandlerCommand.php | 0 .../Command}/CreateAndPublishCommand.php | 0 {Command => src/Command}/ListHandlerCommand.php | 0 {Command => src/Command}/ListQueuesCommand.php | 0 {Command => src/Command}/RestartCommand.php | 0 {Consumer => src/Consumer}/ConsumerEvent.php | 0 .../Consumer}/ConsumerEventInterface.php | 0 {Consumer => src/Consumer}/ConsumerInterface.php | 0 {Consumer => src/Consumer}/ConsumerReturnInfo.php | 0 {Consumer => src/Consumer}/LoggerConsumer.php | 0 {Consumer => src/Consumer}/Metadata.php | 0 {Consumer => src/Consumer}/SwiftMailerConsumer.php | 0 .../Controller}/Api/MessageController.php | 0 .../Controller}/MessageAdminController.php | 0 .../Compiler/NotificationCompilerPass.php | 0 .../DependencyInjection}/Configuration.php | 0 .../SonataNotificationExtension.php | 0 {Entity => src/Entity}/BaseMessage.php | 0 {Entity => src/Entity}/MessageManager.php | 0 .../Event}/DoctrineBackendOptimizeListener.php | 0 {Event => src/Event}/DoctrineOptimizeListener.php | 0 {Event => src/Event}/IterateEvent.php | 0 {Event => src/Event}/IterationListener.php | 0 .../Exception}/BackendNotFoundException.php | 0 {Exception => src/Exception}/HandlingException.php | 0 .../Exception}/InvalidParameterException.php | 0 .../Form}/Type/MessageSerializationType.php | 0 {Iterator => src/Iterator}/AMQPMessageIterator.php | 0 .../Iterator}/ErroneousMessageIterator.php | 0 .../Iterator}/IteratorProxyMessageIterator.php | 0 .../Iterator}/MessageIteratorInterface.php | 0 .../Iterator}/MessageManagerMessageIterator.php | 0 {Model => src/Model}/Message.php | 0 {Model => src/Model}/MessageInterface.php | 0 {Model => src/Model}/MessageManagerInterface.php | 0 {Resources => src/Resources}/config/admin.xml | 0 .../Resources}/config/api_controllers.xml | 0 {Resources => src/Resources}/config/api_form.xml | 0 {Resources => src/Resources}/config/backend.xml | 0 .../Resources}/config/checkmonitor.xml | 0 {Resources => src/Resources}/config/consumer.xml | 0 {Resources => src/Resources}/config/core.xml | 0 {Resources => src/Resources}/config/core_legacy.xml | 0 .../Resources}/config/default_consumers.xml | 0 .../Resources}/config/doctrine/BaseMessage.orm.xml | 0 .../config/doctrine/Message.orm.xml.skeleton | 0 .../Resources}/config/doctrine_orm.xml | 0 {Resources => src/Resources}/config/event.xml | 0 {Resources => src/Resources}/config/routing/api.xml | 0 {Resources => src/Resources}/config/selector.xml | 0 .../Resources}/config/serializer/Model.Message.xml | 0 {Resources => src/Resources}/config/validation.xml | 0 {Resources => src/Resources}/meta/LICENSE | 0 .../translations/SonataNotificationBundle.cs.xliff | 0 .../translations/SonataNotificationBundle.de.xliff | 0 .../translations/SonataNotificationBundle.en.xliff | 0 .../translations/SonataNotificationBundle.es.xliff | 0 .../translations/SonataNotificationBundle.fr.xliff | 0 .../translations/SonataNotificationBundle.it.xliff | 0 .../translations/SonataNotificationBundle.nl.xliff | 0 .../translations/SonataNotificationBundle.sk.xliff | 0 .../translations/SonataNotificationBundle.sl.xliff | 0 .../Selector}/ErroneousMessagesSelector.php | 0 .../SonataNotificationBundle.php | 0 .../Backend/AMQPBackendDispatcherTest.php | 0 {Tests => tests}/Backend/AMQPBackendTest.php | 0 {Tests => tests}/Backend/BackendHealthCheckTest.php | 0 .../Backend/MessageManagerBackendDispatcherTest.php | 0 .../Backend/MessageManagerBackendTest.php | 0 .../Backend/PostponeRuntimeBackendTest.php | 0 {Tests => tests}/Backend/RuntimeBackendTest.php | 0 {Tests => tests}/Consumer/LoggerConsumerTest.php | 0 .../Consumer/SwiftMailerConsumerTest.php | 0 .../Controller/Api/MessageControllerTest.php | 0 {Tests => tests}/Entity/Message.php | 0 {Tests => tests}/Entity/MessageManagerMock.php | 0 {Tests => tests}/Entity/MessageManagerTest.php | 0 {Tests => tests}/Entity/MessageTest.php | 0 .../Event/DoctrineOptimizeListenerTest.php | 0 .../Exception/InvalidParameterExceptionTest.php | 0 .../Iterator/IteratorProxyMessageIteratorTest.php | 0 .../Iterator/MessageManagerMessageIterator.php | 0 .../Iterator/MessageManagerMessageIteratorTest.php | 0 {Tests => tests}/autoload.php.dist | 0 {Tests => tests}/bootstrap.php | 0 117 files changed, 12 insertions(+), 22 deletions(-) rename {Resources/doc => docs}/Makefile (100%) rename {Resources/doc => docs}/_static/.gitkeep (100%) rename {Resources/doc => docs}/conf.py (100%) rename {Resources/doc => docs}/index.rst (100%) rename {Resources/doc => docs}/reference/advanced_configuration.rst (100%) rename {Resources/doc => docs}/reference/api.rst (100%) rename {Resources/doc => docs}/reference/command_line.rst (100%) rename {Resources/doc => docs}/reference/installation.rst (100%) rename {Resources/doc => docs}/reference/introduction.rst (100%) rename {Resources/doc => docs}/reference/monitoring.rst (100%) rename {Resources/doc => docs}/reference/multiple_queues.rst (100%) rename {Resources/doc => docs}/reference/usage.rst (100%) rename {Resources/doc => docs}/requirements.txt (100%) rename {Admin => src/Admin}/MessageAdmin.php (100%) rename {Backend => src/Backend}/AMQPBackend.php (100%) rename {Backend => src/Backend}/AMQPBackendDispatcher.php (100%) rename {Backend => src/Backend}/BackendHealthCheck.php (100%) rename {Backend => src/Backend}/BackendInterface.php (100%) rename {Backend => src/Backend}/MessageManagerBackend.php (100%) rename {Backend => src/Backend}/MessageManagerBackendDispatcher.php (100%) rename {Backend => src/Backend}/PostponeRuntimeBackend.php (100%) rename {Backend => src/Backend}/QueueBackendDispatcher.php (100%) rename {Backend => src/Backend}/QueueDispatcherInterface.php (100%) rename {Backend => src/Backend}/RuntimeBackend.php (100%) rename {Command => src/Command}/CleanupCommand.php (100%) rename {Command => src/Command}/ConsumerHandlerCommand.php (100%) rename {Command => src/Command}/CreateAndPublishCommand.php (100%) rename {Command => src/Command}/ListHandlerCommand.php (100%) rename {Command => src/Command}/ListQueuesCommand.php (100%) rename {Command => src/Command}/RestartCommand.php (100%) rename {Consumer => src/Consumer}/ConsumerEvent.php (100%) rename {Consumer => src/Consumer}/ConsumerEventInterface.php (100%) rename {Consumer => src/Consumer}/ConsumerInterface.php (100%) rename {Consumer => src/Consumer}/ConsumerReturnInfo.php (100%) rename {Consumer => src/Consumer}/LoggerConsumer.php (100%) rename {Consumer => src/Consumer}/Metadata.php (100%) rename {Consumer => src/Consumer}/SwiftMailerConsumer.php (100%) rename {Controller => src/Controller}/Api/MessageController.php (100%) rename {Controller => src/Controller}/MessageAdminController.php (100%) rename {DependencyInjection => src/DependencyInjection}/Compiler/NotificationCompilerPass.php (100%) rename {DependencyInjection => src/DependencyInjection}/Configuration.php (100%) rename {DependencyInjection => src/DependencyInjection}/SonataNotificationExtension.php (100%) rename {Entity => src/Entity}/BaseMessage.php (100%) rename {Entity => src/Entity}/MessageManager.php (100%) rename {Event => src/Event}/DoctrineBackendOptimizeListener.php (100%) rename {Event => src/Event}/DoctrineOptimizeListener.php (100%) rename {Event => src/Event}/IterateEvent.php (100%) rename {Event => src/Event}/IterationListener.php (100%) rename {Exception => src/Exception}/BackendNotFoundException.php (100%) rename {Exception => src/Exception}/HandlingException.php (100%) rename {Exception => src/Exception}/InvalidParameterException.php (100%) rename {Form => src/Form}/Type/MessageSerializationType.php (100%) rename {Iterator => src/Iterator}/AMQPMessageIterator.php (100%) rename {Iterator => src/Iterator}/ErroneousMessageIterator.php (100%) rename {Iterator => src/Iterator}/IteratorProxyMessageIterator.php (100%) rename {Iterator => src/Iterator}/MessageIteratorInterface.php (100%) rename {Iterator => src/Iterator}/MessageManagerMessageIterator.php (100%) rename {Model => src/Model}/Message.php (100%) rename {Model => src/Model}/MessageInterface.php (100%) rename {Model => src/Model}/MessageManagerInterface.php (100%) rename {Resources => src/Resources}/config/admin.xml (100%) rename {Resources => src/Resources}/config/api_controllers.xml (100%) rename {Resources => src/Resources}/config/api_form.xml (100%) rename {Resources => src/Resources}/config/backend.xml (100%) rename {Resources => src/Resources}/config/checkmonitor.xml (100%) rename {Resources => src/Resources}/config/consumer.xml (100%) rename {Resources => src/Resources}/config/core.xml (100%) rename {Resources => src/Resources}/config/core_legacy.xml (100%) rename {Resources => src/Resources}/config/default_consumers.xml (100%) rename {Resources => src/Resources}/config/doctrine/BaseMessage.orm.xml (100%) rename {Resources => src/Resources}/config/doctrine/Message.orm.xml.skeleton (100%) rename {Resources => src/Resources}/config/doctrine_orm.xml (100%) rename {Resources => src/Resources}/config/event.xml (100%) rename {Resources => src/Resources}/config/routing/api.xml (100%) rename {Resources => src/Resources}/config/selector.xml (100%) rename {Resources => src/Resources}/config/serializer/Model.Message.xml (100%) rename {Resources => src/Resources}/config/validation.xml (100%) rename {Resources => src/Resources}/meta/LICENSE (100%) rename {Resources => src/Resources}/translations/SonataNotificationBundle.cs.xliff (100%) rename {Resources => src/Resources}/translations/SonataNotificationBundle.de.xliff (100%) rename {Resources => src/Resources}/translations/SonataNotificationBundle.en.xliff (100%) rename {Resources => src/Resources}/translations/SonataNotificationBundle.es.xliff (100%) rename {Resources => src/Resources}/translations/SonataNotificationBundle.fr.xliff (100%) rename {Resources => src/Resources}/translations/SonataNotificationBundle.it.xliff (100%) rename {Resources => src/Resources}/translations/SonataNotificationBundle.nl.xliff (100%) rename {Resources => src/Resources}/translations/SonataNotificationBundle.sk.xliff (100%) rename {Resources => src/Resources}/translations/SonataNotificationBundle.sl.xliff (100%) rename {Selector => src/Selector}/ErroneousMessagesSelector.php (100%) rename SonataNotificationBundle.php => src/SonataNotificationBundle.php (100%) rename {Tests => tests}/Backend/AMQPBackendDispatcherTest.php (100%) rename {Tests => tests}/Backend/AMQPBackendTest.php (100%) rename {Tests => tests}/Backend/BackendHealthCheckTest.php (100%) rename {Tests => tests}/Backend/MessageManagerBackendDispatcherTest.php (100%) rename {Tests => tests}/Backend/MessageManagerBackendTest.php (100%) rename {Tests => tests}/Backend/PostponeRuntimeBackendTest.php (100%) rename {Tests => tests}/Backend/RuntimeBackendTest.php (100%) rename {Tests => tests}/Consumer/LoggerConsumerTest.php (100%) rename {Tests => tests}/Consumer/SwiftMailerConsumerTest.php (100%) rename {Tests => tests}/Controller/Api/MessageControllerTest.php (100%) rename {Tests => tests}/Entity/Message.php (100%) rename {Tests => tests}/Entity/MessageManagerMock.php (100%) rename {Tests => tests}/Entity/MessageManagerTest.php (100%) rename {Tests => tests}/Entity/MessageTest.php (100%) rename {Tests => tests}/Event/DoctrineOptimizeListenerTest.php (100%) rename {Tests => tests}/Exception/InvalidParameterExceptionTest.php (100%) rename {Tests => tests}/Iterator/IteratorProxyMessageIteratorTest.php (100%) rename {Tests => tests}/Iterator/MessageManagerMessageIterator.php (100%) rename {Tests => tests}/Iterator/MessageManagerMessageIteratorTest.php (100%) rename {Tests => tests}/autoload.php.dist (100%) rename {Tests => tests}/bootstrap.php (100%) diff --git a/.gitattributes b/.gitattributes index 040cc07f..2751333e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,4 @@ .* export-ignore *.md export-ignore Tests/* export-ignore -Resources/doc/* export-ignore +docs/* export-ignore diff --git a/.gitignore b/.gitignore index 10440b3a..9349b895 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /build -/Resources/doc/_build +/docs/_build /vendor .php_cs.cache composer.lock diff --git a/.travis/install_docs.sh b/.travis/install_docs.sh index 362f6449..a5522d97 100755 --- a/.travis/install_docs.sh +++ b/.travis/install_docs.sh @@ -1,4 +1,4 @@ #!/usr/bin/env sh set -ev -pip install -r Resources/doc/requirements.txt --user +pip install -r docs/requirements.txt --user diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d57776f4..affb2ef4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -74,13 +74,13 @@ php-cs-fixer fix --verbose #### The documentation -The documentation is mostly written with the `rst` format, and can be found in the `Resources/doc` directory. +The documentation is mostly written with the `rst` format, and can be found in the `docs` directory. You can test the doc rendering with the `make docs` command, but to do this, you will need [Sphinx][sphinx_install]. Just like php dependencies can be managed with Composer, python dependencies can be managed with [pip][pip_install]. To get sphinx, simply run the following command. ```bash -pip install --requirement Resources/doc/requirements.txt --user +pip install --requirement docs/requirements.txt --user ``` Some python binaries should be downloaded to `~/.local/bin` for Linux or `~/Library/Python/2.7/bin` for Mac OS, @@ -90,7 +90,7 @@ so that it contains this path and then, from the root of the project, run `make If `make docs` is successful, you should be able to see your modifications: ```bash -$YOUR_FAVORITE_BROWSER Resources/doc/_build/html/index.html +$YOUR_FAVORITE_BROWSER docs/_build/html/index.html ``` If your PR contains a new feature, you must add documentation for it. diff --git a/Makefile b/Makefile index e27d3cd3..43e65b4e 100644 --- a/Makefile +++ b/Makefile @@ -19,4 +19,4 @@ test: phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml docs: - cd Resources/doc && sphinx-build -W -b html -d _build/doctrees . _build/html + cd docs && sphinx-build -W -b html -d _build/doctrees . _build/html diff --git a/composer.json b/composer.json index 6ec9bccb..21d66bf1 100644 --- a/composer.json +++ b/composer.json @@ -56,13 +56,10 @@ "sonata-project/admin-bundle": "<3.1" }, "autoload": { - "psr-4": { "Sonata\\NotificationBundle\\": "" }, - "exclude-from-classmap": [ - "Tests/" - ] + "psr-4": { "Sonata\\NotificationBundle\\": "src/" } }, "autoload-dev": { - "psr-4": { "Sonata\\NotificationBundle\\Tests\\": "Tests/" } + "psr-4": { "Sonata\\NotificationBundle\\Tests\\": "tests/" } }, "extra": { "branch-alias": { diff --git a/Resources/doc/Makefile b/docs/Makefile similarity index 100% rename from Resources/doc/Makefile rename to docs/Makefile diff --git a/Resources/doc/_static/.gitkeep b/docs/_static/.gitkeep similarity index 100% rename from Resources/doc/_static/.gitkeep rename to docs/_static/.gitkeep diff --git a/Resources/doc/conf.py b/docs/conf.py similarity index 100% rename from Resources/doc/conf.py rename to docs/conf.py diff --git a/Resources/doc/index.rst b/docs/index.rst similarity index 100% rename from Resources/doc/index.rst rename to docs/index.rst diff --git a/Resources/doc/reference/advanced_configuration.rst b/docs/reference/advanced_configuration.rst similarity index 100% rename from Resources/doc/reference/advanced_configuration.rst rename to docs/reference/advanced_configuration.rst diff --git a/Resources/doc/reference/api.rst b/docs/reference/api.rst similarity index 100% rename from Resources/doc/reference/api.rst rename to docs/reference/api.rst diff --git a/Resources/doc/reference/command_line.rst b/docs/reference/command_line.rst similarity index 100% rename from Resources/doc/reference/command_line.rst rename to docs/reference/command_line.rst diff --git a/Resources/doc/reference/installation.rst b/docs/reference/installation.rst similarity index 100% rename from Resources/doc/reference/installation.rst rename to docs/reference/installation.rst diff --git a/Resources/doc/reference/introduction.rst b/docs/reference/introduction.rst similarity index 100% rename from Resources/doc/reference/introduction.rst rename to docs/reference/introduction.rst diff --git a/Resources/doc/reference/monitoring.rst b/docs/reference/monitoring.rst similarity index 100% rename from Resources/doc/reference/monitoring.rst rename to docs/reference/monitoring.rst diff --git a/Resources/doc/reference/multiple_queues.rst b/docs/reference/multiple_queues.rst similarity index 100% rename from Resources/doc/reference/multiple_queues.rst rename to docs/reference/multiple_queues.rst diff --git a/Resources/doc/reference/usage.rst b/docs/reference/usage.rst similarity index 100% rename from Resources/doc/reference/usage.rst rename to docs/reference/usage.rst diff --git a/Resources/doc/requirements.txt b/docs/requirements.txt similarity index 100% rename from Resources/doc/requirements.txt rename to docs/requirements.txt diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 384b4b1b..c22f066c 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -9,24 +9,17 @@ processIsolation="false" stopOnFailure="false" syntaxCheck="false" - bootstrap="Tests/bootstrap.php" + bootstrap="tests/bootstrap.php" > - ./Tests + ./tests/ - ./ - - ./Tests/ - ./DataFixtures/ - ./Resources/ - ./vendor/ - ./coverage/ - + ./src/ diff --git a/Admin/MessageAdmin.php b/src/Admin/MessageAdmin.php similarity index 100% rename from Admin/MessageAdmin.php rename to src/Admin/MessageAdmin.php diff --git a/Backend/AMQPBackend.php b/src/Backend/AMQPBackend.php similarity index 100% rename from Backend/AMQPBackend.php rename to src/Backend/AMQPBackend.php diff --git a/Backend/AMQPBackendDispatcher.php b/src/Backend/AMQPBackendDispatcher.php similarity index 100% rename from Backend/AMQPBackendDispatcher.php rename to src/Backend/AMQPBackendDispatcher.php diff --git a/Backend/BackendHealthCheck.php b/src/Backend/BackendHealthCheck.php similarity index 100% rename from Backend/BackendHealthCheck.php rename to src/Backend/BackendHealthCheck.php diff --git a/Backend/BackendInterface.php b/src/Backend/BackendInterface.php similarity index 100% rename from Backend/BackendInterface.php rename to src/Backend/BackendInterface.php diff --git a/Backend/MessageManagerBackend.php b/src/Backend/MessageManagerBackend.php similarity index 100% rename from Backend/MessageManagerBackend.php rename to src/Backend/MessageManagerBackend.php diff --git a/Backend/MessageManagerBackendDispatcher.php b/src/Backend/MessageManagerBackendDispatcher.php similarity index 100% rename from Backend/MessageManagerBackendDispatcher.php rename to src/Backend/MessageManagerBackendDispatcher.php diff --git a/Backend/PostponeRuntimeBackend.php b/src/Backend/PostponeRuntimeBackend.php similarity index 100% rename from Backend/PostponeRuntimeBackend.php rename to src/Backend/PostponeRuntimeBackend.php diff --git a/Backend/QueueBackendDispatcher.php b/src/Backend/QueueBackendDispatcher.php similarity index 100% rename from Backend/QueueBackendDispatcher.php rename to src/Backend/QueueBackendDispatcher.php diff --git a/Backend/QueueDispatcherInterface.php b/src/Backend/QueueDispatcherInterface.php similarity index 100% rename from Backend/QueueDispatcherInterface.php rename to src/Backend/QueueDispatcherInterface.php diff --git a/Backend/RuntimeBackend.php b/src/Backend/RuntimeBackend.php similarity index 100% rename from Backend/RuntimeBackend.php rename to src/Backend/RuntimeBackend.php diff --git a/Command/CleanupCommand.php b/src/Command/CleanupCommand.php similarity index 100% rename from Command/CleanupCommand.php rename to src/Command/CleanupCommand.php diff --git a/Command/ConsumerHandlerCommand.php b/src/Command/ConsumerHandlerCommand.php similarity index 100% rename from Command/ConsumerHandlerCommand.php rename to src/Command/ConsumerHandlerCommand.php diff --git a/Command/CreateAndPublishCommand.php b/src/Command/CreateAndPublishCommand.php similarity index 100% rename from Command/CreateAndPublishCommand.php rename to src/Command/CreateAndPublishCommand.php diff --git a/Command/ListHandlerCommand.php b/src/Command/ListHandlerCommand.php similarity index 100% rename from Command/ListHandlerCommand.php rename to src/Command/ListHandlerCommand.php diff --git a/Command/ListQueuesCommand.php b/src/Command/ListQueuesCommand.php similarity index 100% rename from Command/ListQueuesCommand.php rename to src/Command/ListQueuesCommand.php diff --git a/Command/RestartCommand.php b/src/Command/RestartCommand.php similarity index 100% rename from Command/RestartCommand.php rename to src/Command/RestartCommand.php diff --git a/Consumer/ConsumerEvent.php b/src/Consumer/ConsumerEvent.php similarity index 100% rename from Consumer/ConsumerEvent.php rename to src/Consumer/ConsumerEvent.php diff --git a/Consumer/ConsumerEventInterface.php b/src/Consumer/ConsumerEventInterface.php similarity index 100% rename from Consumer/ConsumerEventInterface.php rename to src/Consumer/ConsumerEventInterface.php diff --git a/Consumer/ConsumerInterface.php b/src/Consumer/ConsumerInterface.php similarity index 100% rename from Consumer/ConsumerInterface.php rename to src/Consumer/ConsumerInterface.php diff --git a/Consumer/ConsumerReturnInfo.php b/src/Consumer/ConsumerReturnInfo.php similarity index 100% rename from Consumer/ConsumerReturnInfo.php rename to src/Consumer/ConsumerReturnInfo.php diff --git a/Consumer/LoggerConsumer.php b/src/Consumer/LoggerConsumer.php similarity index 100% rename from Consumer/LoggerConsumer.php rename to src/Consumer/LoggerConsumer.php diff --git a/Consumer/Metadata.php b/src/Consumer/Metadata.php similarity index 100% rename from Consumer/Metadata.php rename to src/Consumer/Metadata.php diff --git a/Consumer/SwiftMailerConsumer.php b/src/Consumer/SwiftMailerConsumer.php similarity index 100% rename from Consumer/SwiftMailerConsumer.php rename to src/Consumer/SwiftMailerConsumer.php diff --git a/Controller/Api/MessageController.php b/src/Controller/Api/MessageController.php similarity index 100% rename from Controller/Api/MessageController.php rename to src/Controller/Api/MessageController.php diff --git a/Controller/MessageAdminController.php b/src/Controller/MessageAdminController.php similarity index 100% rename from Controller/MessageAdminController.php rename to src/Controller/MessageAdminController.php diff --git a/DependencyInjection/Compiler/NotificationCompilerPass.php b/src/DependencyInjection/Compiler/NotificationCompilerPass.php similarity index 100% rename from DependencyInjection/Compiler/NotificationCompilerPass.php rename to src/DependencyInjection/Compiler/NotificationCompilerPass.php diff --git a/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php similarity index 100% rename from DependencyInjection/Configuration.php rename to src/DependencyInjection/Configuration.php diff --git a/DependencyInjection/SonataNotificationExtension.php b/src/DependencyInjection/SonataNotificationExtension.php similarity index 100% rename from DependencyInjection/SonataNotificationExtension.php rename to src/DependencyInjection/SonataNotificationExtension.php diff --git a/Entity/BaseMessage.php b/src/Entity/BaseMessage.php similarity index 100% rename from Entity/BaseMessage.php rename to src/Entity/BaseMessage.php diff --git a/Entity/MessageManager.php b/src/Entity/MessageManager.php similarity index 100% rename from Entity/MessageManager.php rename to src/Entity/MessageManager.php diff --git a/Event/DoctrineBackendOptimizeListener.php b/src/Event/DoctrineBackendOptimizeListener.php similarity index 100% rename from Event/DoctrineBackendOptimizeListener.php rename to src/Event/DoctrineBackendOptimizeListener.php diff --git a/Event/DoctrineOptimizeListener.php b/src/Event/DoctrineOptimizeListener.php similarity index 100% rename from Event/DoctrineOptimizeListener.php rename to src/Event/DoctrineOptimizeListener.php diff --git a/Event/IterateEvent.php b/src/Event/IterateEvent.php similarity index 100% rename from Event/IterateEvent.php rename to src/Event/IterateEvent.php diff --git a/Event/IterationListener.php b/src/Event/IterationListener.php similarity index 100% rename from Event/IterationListener.php rename to src/Event/IterationListener.php diff --git a/Exception/BackendNotFoundException.php b/src/Exception/BackendNotFoundException.php similarity index 100% rename from Exception/BackendNotFoundException.php rename to src/Exception/BackendNotFoundException.php diff --git a/Exception/HandlingException.php b/src/Exception/HandlingException.php similarity index 100% rename from Exception/HandlingException.php rename to src/Exception/HandlingException.php diff --git a/Exception/InvalidParameterException.php b/src/Exception/InvalidParameterException.php similarity index 100% rename from Exception/InvalidParameterException.php rename to src/Exception/InvalidParameterException.php diff --git a/Form/Type/MessageSerializationType.php b/src/Form/Type/MessageSerializationType.php similarity index 100% rename from Form/Type/MessageSerializationType.php rename to src/Form/Type/MessageSerializationType.php diff --git a/Iterator/AMQPMessageIterator.php b/src/Iterator/AMQPMessageIterator.php similarity index 100% rename from Iterator/AMQPMessageIterator.php rename to src/Iterator/AMQPMessageIterator.php diff --git a/Iterator/ErroneousMessageIterator.php b/src/Iterator/ErroneousMessageIterator.php similarity index 100% rename from Iterator/ErroneousMessageIterator.php rename to src/Iterator/ErroneousMessageIterator.php diff --git a/Iterator/IteratorProxyMessageIterator.php b/src/Iterator/IteratorProxyMessageIterator.php similarity index 100% rename from Iterator/IteratorProxyMessageIterator.php rename to src/Iterator/IteratorProxyMessageIterator.php diff --git a/Iterator/MessageIteratorInterface.php b/src/Iterator/MessageIteratorInterface.php similarity index 100% rename from Iterator/MessageIteratorInterface.php rename to src/Iterator/MessageIteratorInterface.php diff --git a/Iterator/MessageManagerMessageIterator.php b/src/Iterator/MessageManagerMessageIterator.php similarity index 100% rename from Iterator/MessageManagerMessageIterator.php rename to src/Iterator/MessageManagerMessageIterator.php diff --git a/Model/Message.php b/src/Model/Message.php similarity index 100% rename from Model/Message.php rename to src/Model/Message.php diff --git a/Model/MessageInterface.php b/src/Model/MessageInterface.php similarity index 100% rename from Model/MessageInterface.php rename to src/Model/MessageInterface.php diff --git a/Model/MessageManagerInterface.php b/src/Model/MessageManagerInterface.php similarity index 100% rename from Model/MessageManagerInterface.php rename to src/Model/MessageManagerInterface.php diff --git a/Resources/config/admin.xml b/src/Resources/config/admin.xml similarity index 100% rename from Resources/config/admin.xml rename to src/Resources/config/admin.xml diff --git a/Resources/config/api_controllers.xml b/src/Resources/config/api_controllers.xml similarity index 100% rename from Resources/config/api_controllers.xml rename to src/Resources/config/api_controllers.xml diff --git a/Resources/config/api_form.xml b/src/Resources/config/api_form.xml similarity index 100% rename from Resources/config/api_form.xml rename to src/Resources/config/api_form.xml diff --git a/Resources/config/backend.xml b/src/Resources/config/backend.xml similarity index 100% rename from Resources/config/backend.xml rename to src/Resources/config/backend.xml diff --git a/Resources/config/checkmonitor.xml b/src/Resources/config/checkmonitor.xml similarity index 100% rename from Resources/config/checkmonitor.xml rename to src/Resources/config/checkmonitor.xml diff --git a/Resources/config/consumer.xml b/src/Resources/config/consumer.xml similarity index 100% rename from Resources/config/consumer.xml rename to src/Resources/config/consumer.xml diff --git a/Resources/config/core.xml b/src/Resources/config/core.xml similarity index 100% rename from Resources/config/core.xml rename to src/Resources/config/core.xml diff --git a/Resources/config/core_legacy.xml b/src/Resources/config/core_legacy.xml similarity index 100% rename from Resources/config/core_legacy.xml rename to src/Resources/config/core_legacy.xml diff --git a/Resources/config/default_consumers.xml b/src/Resources/config/default_consumers.xml similarity index 100% rename from Resources/config/default_consumers.xml rename to src/Resources/config/default_consumers.xml diff --git a/Resources/config/doctrine/BaseMessage.orm.xml b/src/Resources/config/doctrine/BaseMessage.orm.xml similarity index 100% rename from Resources/config/doctrine/BaseMessage.orm.xml rename to src/Resources/config/doctrine/BaseMessage.orm.xml diff --git a/Resources/config/doctrine/Message.orm.xml.skeleton b/src/Resources/config/doctrine/Message.orm.xml.skeleton similarity index 100% rename from Resources/config/doctrine/Message.orm.xml.skeleton rename to src/Resources/config/doctrine/Message.orm.xml.skeleton diff --git a/Resources/config/doctrine_orm.xml b/src/Resources/config/doctrine_orm.xml similarity index 100% rename from Resources/config/doctrine_orm.xml rename to src/Resources/config/doctrine_orm.xml diff --git a/Resources/config/event.xml b/src/Resources/config/event.xml similarity index 100% rename from Resources/config/event.xml rename to src/Resources/config/event.xml diff --git a/Resources/config/routing/api.xml b/src/Resources/config/routing/api.xml similarity index 100% rename from Resources/config/routing/api.xml rename to src/Resources/config/routing/api.xml diff --git a/Resources/config/selector.xml b/src/Resources/config/selector.xml similarity index 100% rename from Resources/config/selector.xml rename to src/Resources/config/selector.xml diff --git a/Resources/config/serializer/Model.Message.xml b/src/Resources/config/serializer/Model.Message.xml similarity index 100% rename from Resources/config/serializer/Model.Message.xml rename to src/Resources/config/serializer/Model.Message.xml diff --git a/Resources/config/validation.xml b/src/Resources/config/validation.xml similarity index 100% rename from Resources/config/validation.xml rename to src/Resources/config/validation.xml diff --git a/Resources/meta/LICENSE b/src/Resources/meta/LICENSE similarity index 100% rename from Resources/meta/LICENSE rename to src/Resources/meta/LICENSE diff --git a/Resources/translations/SonataNotificationBundle.cs.xliff b/src/Resources/translations/SonataNotificationBundle.cs.xliff similarity index 100% rename from Resources/translations/SonataNotificationBundle.cs.xliff rename to src/Resources/translations/SonataNotificationBundle.cs.xliff diff --git a/Resources/translations/SonataNotificationBundle.de.xliff b/src/Resources/translations/SonataNotificationBundle.de.xliff similarity index 100% rename from Resources/translations/SonataNotificationBundle.de.xliff rename to src/Resources/translations/SonataNotificationBundle.de.xliff diff --git a/Resources/translations/SonataNotificationBundle.en.xliff b/src/Resources/translations/SonataNotificationBundle.en.xliff similarity index 100% rename from Resources/translations/SonataNotificationBundle.en.xliff rename to src/Resources/translations/SonataNotificationBundle.en.xliff diff --git a/Resources/translations/SonataNotificationBundle.es.xliff b/src/Resources/translations/SonataNotificationBundle.es.xliff similarity index 100% rename from Resources/translations/SonataNotificationBundle.es.xliff rename to src/Resources/translations/SonataNotificationBundle.es.xliff diff --git a/Resources/translations/SonataNotificationBundle.fr.xliff b/src/Resources/translations/SonataNotificationBundle.fr.xliff similarity index 100% rename from Resources/translations/SonataNotificationBundle.fr.xliff rename to src/Resources/translations/SonataNotificationBundle.fr.xliff diff --git a/Resources/translations/SonataNotificationBundle.it.xliff b/src/Resources/translations/SonataNotificationBundle.it.xliff similarity index 100% rename from Resources/translations/SonataNotificationBundle.it.xliff rename to src/Resources/translations/SonataNotificationBundle.it.xliff diff --git a/Resources/translations/SonataNotificationBundle.nl.xliff b/src/Resources/translations/SonataNotificationBundle.nl.xliff similarity index 100% rename from Resources/translations/SonataNotificationBundle.nl.xliff rename to src/Resources/translations/SonataNotificationBundle.nl.xliff diff --git a/Resources/translations/SonataNotificationBundle.sk.xliff b/src/Resources/translations/SonataNotificationBundle.sk.xliff similarity index 100% rename from Resources/translations/SonataNotificationBundle.sk.xliff rename to src/Resources/translations/SonataNotificationBundle.sk.xliff diff --git a/Resources/translations/SonataNotificationBundle.sl.xliff b/src/Resources/translations/SonataNotificationBundle.sl.xliff similarity index 100% rename from Resources/translations/SonataNotificationBundle.sl.xliff rename to src/Resources/translations/SonataNotificationBundle.sl.xliff diff --git a/Selector/ErroneousMessagesSelector.php b/src/Selector/ErroneousMessagesSelector.php similarity index 100% rename from Selector/ErroneousMessagesSelector.php rename to src/Selector/ErroneousMessagesSelector.php diff --git a/SonataNotificationBundle.php b/src/SonataNotificationBundle.php similarity index 100% rename from SonataNotificationBundle.php rename to src/SonataNotificationBundle.php diff --git a/Tests/Backend/AMQPBackendDispatcherTest.php b/tests/Backend/AMQPBackendDispatcherTest.php similarity index 100% rename from Tests/Backend/AMQPBackendDispatcherTest.php rename to tests/Backend/AMQPBackendDispatcherTest.php diff --git a/Tests/Backend/AMQPBackendTest.php b/tests/Backend/AMQPBackendTest.php similarity index 100% rename from Tests/Backend/AMQPBackendTest.php rename to tests/Backend/AMQPBackendTest.php diff --git a/Tests/Backend/BackendHealthCheckTest.php b/tests/Backend/BackendHealthCheckTest.php similarity index 100% rename from Tests/Backend/BackendHealthCheckTest.php rename to tests/Backend/BackendHealthCheckTest.php diff --git a/Tests/Backend/MessageManagerBackendDispatcherTest.php b/tests/Backend/MessageManagerBackendDispatcherTest.php similarity index 100% rename from Tests/Backend/MessageManagerBackendDispatcherTest.php rename to tests/Backend/MessageManagerBackendDispatcherTest.php diff --git a/Tests/Backend/MessageManagerBackendTest.php b/tests/Backend/MessageManagerBackendTest.php similarity index 100% rename from Tests/Backend/MessageManagerBackendTest.php rename to tests/Backend/MessageManagerBackendTest.php diff --git a/Tests/Backend/PostponeRuntimeBackendTest.php b/tests/Backend/PostponeRuntimeBackendTest.php similarity index 100% rename from Tests/Backend/PostponeRuntimeBackendTest.php rename to tests/Backend/PostponeRuntimeBackendTest.php diff --git a/Tests/Backend/RuntimeBackendTest.php b/tests/Backend/RuntimeBackendTest.php similarity index 100% rename from Tests/Backend/RuntimeBackendTest.php rename to tests/Backend/RuntimeBackendTest.php diff --git a/Tests/Consumer/LoggerConsumerTest.php b/tests/Consumer/LoggerConsumerTest.php similarity index 100% rename from Tests/Consumer/LoggerConsumerTest.php rename to tests/Consumer/LoggerConsumerTest.php diff --git a/Tests/Consumer/SwiftMailerConsumerTest.php b/tests/Consumer/SwiftMailerConsumerTest.php similarity index 100% rename from Tests/Consumer/SwiftMailerConsumerTest.php rename to tests/Consumer/SwiftMailerConsumerTest.php diff --git a/Tests/Controller/Api/MessageControllerTest.php b/tests/Controller/Api/MessageControllerTest.php similarity index 100% rename from Tests/Controller/Api/MessageControllerTest.php rename to tests/Controller/Api/MessageControllerTest.php diff --git a/Tests/Entity/Message.php b/tests/Entity/Message.php similarity index 100% rename from Tests/Entity/Message.php rename to tests/Entity/Message.php diff --git a/Tests/Entity/MessageManagerMock.php b/tests/Entity/MessageManagerMock.php similarity index 100% rename from Tests/Entity/MessageManagerMock.php rename to tests/Entity/MessageManagerMock.php diff --git a/Tests/Entity/MessageManagerTest.php b/tests/Entity/MessageManagerTest.php similarity index 100% rename from Tests/Entity/MessageManagerTest.php rename to tests/Entity/MessageManagerTest.php diff --git a/Tests/Entity/MessageTest.php b/tests/Entity/MessageTest.php similarity index 100% rename from Tests/Entity/MessageTest.php rename to tests/Entity/MessageTest.php diff --git a/Tests/Event/DoctrineOptimizeListenerTest.php b/tests/Event/DoctrineOptimizeListenerTest.php similarity index 100% rename from Tests/Event/DoctrineOptimizeListenerTest.php rename to tests/Event/DoctrineOptimizeListenerTest.php diff --git a/Tests/Exception/InvalidParameterExceptionTest.php b/tests/Exception/InvalidParameterExceptionTest.php similarity index 100% rename from Tests/Exception/InvalidParameterExceptionTest.php rename to tests/Exception/InvalidParameterExceptionTest.php diff --git a/Tests/Iterator/IteratorProxyMessageIteratorTest.php b/tests/Iterator/IteratorProxyMessageIteratorTest.php similarity index 100% rename from Tests/Iterator/IteratorProxyMessageIteratorTest.php rename to tests/Iterator/IteratorProxyMessageIteratorTest.php diff --git a/Tests/Iterator/MessageManagerMessageIterator.php b/tests/Iterator/MessageManagerMessageIterator.php similarity index 100% rename from Tests/Iterator/MessageManagerMessageIterator.php rename to tests/Iterator/MessageManagerMessageIterator.php diff --git a/Tests/Iterator/MessageManagerMessageIteratorTest.php b/tests/Iterator/MessageManagerMessageIteratorTest.php similarity index 100% rename from Tests/Iterator/MessageManagerMessageIteratorTest.php rename to tests/Iterator/MessageManagerMessageIteratorTest.php diff --git a/Tests/autoload.php.dist b/tests/autoload.php.dist similarity index 100% rename from Tests/autoload.php.dist rename to tests/autoload.php.dist diff --git a/Tests/bootstrap.php b/tests/bootstrap.php similarity index 100% rename from Tests/bootstrap.php rename to tests/bootstrap.php