├── .babelrc
├── .env
├── .env.test
├── .github
└── ISSUE_TEMPLATE
│ ├── bug-report---.md
│ ├── documentation-issue---.md
│ └── feature-request--.md
├── .gitignore
├── .php_cs.dist
├── .travis.yml
├── Capfile
├── Gemfile
├── LICENSE
├── Makefile.dist
├── Makefile.install.dist
├── Makefile.test.dist
├── Makefile.validation.dist
├── README.md
├── assets
├── backend
│ ├── img
│ │ ├── admin-logo.svg
│ │ ├── avatar.png
│ │ └── logo.png
│ ├── js
│ │ ├── app-date-time-picker.js
│ │ ├── app-images-preview.js
│ │ ├── app.js
│ │ └── sylius-compound-form-errors.js
│ ├── scss
│ │ └── main.scss
│ └── webpack.config.js
├── common
│ ├── js
│ │ ├── app.js
│ │ ├── shim-polyfill.js
│ │ └── shim-semantic-ui.js
│ └── scss
│ │ ├── _ui.scss
│ │ └── style.scss
├── config-builder.js
└── frontend
│ ├── img
│ └── logo.png
│ ├── js
│ ├── app.js
│ └── shim-lightbox.js
│ ├── scss
│ └── main.scss
│ └── webpack.config.js
├── behat.yml.dist
├── bin
└── console
├── composer.json
├── composer.lock
├── config
├── bootstrap.php
├── bundles.php
├── grids
│ └── backend
│ │ ├── admin_user.yaml
│ │ └── customer.yaml
├── packages
│ ├── api_platform.yaml
│ ├── assets.yaml
│ ├── dev
│ │ ├── debug.yaml
│ │ ├── jms_serializer.yaml
│ │ ├── monolog.yaml
│ │ ├── nelmio_alice.yaml
│ │ ├── routing.yaml
│ │ ├── swiftmailer.yaml
│ │ └── web_profiler.yaml
│ ├── doctrine.yaml
│ ├── doctrine_migrations.yaml
│ ├── eight_points_guzzle.yaml
│ ├── fos_oauth_server.yaml
│ ├── fos_rest.yaml
│ ├── framework.yaml
│ ├── jms_serializer.yaml
│ ├── liip_imagine.yaml
│ ├── nelmio_cors.yaml
│ ├── prod
│ │ ├── doctrine.yaml
│ │ ├── jms_serializer.yaml
│ │ ├── monolog.yaml
│ │ └── webpack_encore.yaml
│ ├── routing.yaml
│ ├── security.yaml
│ ├── security_checker.yaml
│ ├── sonata_block.yaml
│ ├── sonata_core.yaml
│ ├── stof_doctrine_extensions.yaml
│ ├── swiftmailer.yaml
│ ├── sylius_customer.yaml
│ ├── sylius_fixtures.yaml
│ ├── sylius_grid.yaml
│ ├── sylius_mailer.yaml
│ ├── sylius_resource.yaml
│ ├── sylius_user.yaml
│ ├── test
│ │ ├── fidry_alice_data_fixtures.yaml
│ │ ├── framework.yaml
│ │ ├── monolog.yaml
│ │ ├── nelmio_alice.yaml
│ │ ├── routing.yaml
│ │ ├── swiftmailer.yaml
│ │ ├── translation.yaml
│ │ └── web_profiler.yaml
│ ├── translation.yaml
│ ├── twig.yaml
│ ├── twig_extensions.yaml
│ ├── validator.yaml
│ ├── vich_uploader.yaml
│ └── webpack_encore.yaml
├── routes.yaml
├── routes
│ ├── annotations.yaml
│ ├── api.yaml
│ ├── api_platform.yaml
│ ├── backend.yaml
│ ├── backend
│ │ ├── admin_user.yaml
│ │ ├── customer.yaml
│ │ ├── partial.yaml
│ │ ├── partial
│ │ │ └── customer.yaml
│ │ └── security.yaml
│ ├── dev
│ │ ├── twig.yaml
│ │ └── web_profiler.yaml
│ ├── frontend.yaml
│ ├── frontend
│ │ ├── account.yaml
│ │ ├── partial.yaml
│ │ └── security.yaml
│ └── liip_imagine.yaml
├── services.yaml
├── services
│ ├── _main.yaml
│ ├── command.yaml
│ ├── context.yaml
│ ├── dashboard.yaml
│ ├── fixtures.yaml
│ ├── fixtures_factories.yaml
│ ├── form.yaml
│ ├── installer.yaml
│ ├── listener.yaml
│ ├── menu.yaml
│ └── validator.yaml
├── services_test.yaml
├── services_test
│ ├── contexts.yaml
│ ├── contexts
│ │ ├── cli.yaml
│ │ ├── hook.yaml
│ │ ├── setup.yaml
│ │ ├── transform.yaml
│ │ └── ui.yaml
│ ├── elements.yaml
│ ├── pages.yaml
│ └── pages
│ │ ├── backend.yaml
│ │ ├── backend
│ │ ├── administrator.yaml
│ │ ├── customer.yaml
│ │ └── dashboard.yaml
│ │ └── frontend.yaml
├── suites.yaml
└── suites
│ ├── cli
│ ├── installer.yaml
│ └── makefile.yaml
│ └── ui
│ ├── account
│ ├── customer.yaml
│ ├── login.yaml
│ └── registration.yaml
│ ├── admin
│ └── dashboard.yaml
│ ├── customer
│ └── managing_customers.yaml
│ └── user
│ └── managing_administrators.yaml
├── docs
├── .gitignore
├── README.md
├── _exts
│ ├── LICENSE
│ ├── sensio
│ │ ├── __init__.py
│ │ └── sphinx
│ │ │ ├── __init__.py
│ │ │ ├── configurationblock.py
│ │ │ ├── php.py
│ │ │ ├── phpcode.py
│ │ │ └── refinclude.py
│ └── setup.py
├── _images
│ ├── doc_logo.png
│ ├── doctrine.png
│ ├── github_banner.png
│ ├── logo.png
│ ├── symfonyfs.png
│ └── twig.png
├── _themes
│ └── sylius_rtd_theme
│ │ ├── __init__.py
│ │ ├── breadcrumbs.html
│ │ ├── footer.html
│ │ ├── layout.html
│ │ ├── layout_old.html
│ │ ├── search.html
│ │ ├── searchbox.html
│ │ ├── static
│ │ ├── css
│ │ │ ├── badge_only.css
│ │ │ ├── sylius-custom.css
│ │ │ ├── sylius.css
│ │ │ └── theme.css
│ │ ├── fonts
│ │ │ ├── FontAwesome.otf
│ │ │ ├── fontawesome-webfont.eot
│ │ │ ├── fontawesome-webfont.svg
│ │ │ ├── fontawesome-webfont.ttf
│ │ │ └── fontawesome-webfont.woff
│ │ ├── img
│ │ │ └── swan.png
│ │ └── js
│ │ │ └── theme.js
│ │ ├── theme.conf
│ │ └── versions.html
├── book
│ ├── architecture
│ │ ├── architecture.rst
│ │ ├── fixtures.rst
│ │ ├── index.rst
│ │ └── map.rst.inc
│ ├── index.rst
│ ├── map.rst.inc
│ └── user
│ │ ├── admins.rst
│ │ ├── customers.rst
│ │ ├── index.rst
│ │ └── map.rst.inc
├── conf.py
├── cookbook
│ ├── bdd
│ │ ├── behat
│ │ │ ├── basic-usage.rst
│ │ │ ├── how-to-add-new-context.rst
│ │ │ ├── how-to-add-new-page.rst
│ │ │ ├── how-to-change-behat-application-base-url.rst
│ │ │ ├── how-to-define-new-suite.rst
│ │ │ ├── how-to-use-transformers.rst
│ │ │ ├── index.rst
│ │ │ └── map.rst.inc
│ │ ├── map.rst.inc
│ │ └── phpspec
│ │ │ ├── how-to-configure-phpspec-with-code-coverage.rst
│ │ │ ├── how-to-design-entities-with-phpspec.rst
│ │ │ ├── how-to-design-services-with-phpspec.rst
│ │ │ ├── how-to-disable-phpspec-code-coverage.rst
│ │ │ ├── index.rst
│ │ │ └── map.rst.inc
│ ├── dashboard
│ │ ├── basic-example.rst
│ │ ├── index.rst
│ │ └── map.rst.inc
│ ├── deployment
│ │ ├── capistrano.rst
│ │ └── map.rst.inc
│ ├── entities
│ │ ├── configure-backend-menu.rst
│ │ ├── configure-your-routes.rst
│ │ ├── first-resource.rst
│ │ ├── manage-your-entity.rst
│ │ └── map.rst.inc
│ ├── fixtures
│ │ ├── factory.rst
│ │ ├── fixture.rst
│ │ ├── load.rst
│ │ ├── map.rst.inc
│ │ └── suite.rst
│ ├── index.rst
│ └── map.rst.inc
├── deployment
│ ├── index.rst
│ └── map.rst.inc
├── index.rst
└── requirements.txt
├── etc
├── bash
│ ├── application.sh
│ └── common.lib.sh
├── build
│ └── .gitignore
├── capistrano
│ ├── deploy.rb
│ └── deploy
│ │ ├── production.rb
│ │ └── staging.rb
└── travis
│ ├── run-suite
│ └── suites
│ ├── application
│ ├── assets
│ │ ├── behat-javascript.yml
│ │ └── old-behat.yml
│ ├── before_install.sh
│ ├── before_script.sh
│ ├── install.sh
│ ├── is_suitable.sh
│ ├── script.sh
│ └── script
│ │ ├── test-behat-with-cli
│ │ ├── test-behat-with-javascript
│ │ ├── test-behat-without-javascript
│ │ ├── test-doctrine-migrations
│ │ ├── test-fixtures
│ │ ├── test-infection
│ │ ├── test-installer
│ │ ├── test-phpspec
│ │ ├── test-phpstan
│ │ ├── test-phpunit
│ │ ├── test-prod-requirements
│ │ ├── test-psalm
│ │ ├── validate-composer
│ │ ├── validate-composer-security
│ │ ├── validate-doctrine-schema
│ │ ├── validate-twig
│ │ ├── validate-yaml-files
│ │ └── validate-yarn-packages
│ ├── common
│ ├── after_failure.sh
│ ├── assets
│ │ └── opcache.php.ini
│ ├── before_install.sh
│ └── install.sh
│ └── docs
│ ├── install.sh
│ ├── is_suitable.sh
│ └── script.sh
├── features
├── account
│ ├── customer_account
│ │ ├── changing_password.feature
│ │ ├── changing_password_validation.feature
│ │ ├── customer_profile_validation.feature
│ │ └── editing_customer_profile.feature
│ ├── registering.feature
│ ├── registering_validation.feature
│ ├── resetting_password.feature
│ ├── resetting_password_validation.feature
│ ├── signing_in.feature
│ └── signing_in_validation.feature
├── admin
│ └── dashboard.feature
├── installer
│ └── install_command.feature
├── makefile
│ ├── make_docs_build.feature
│ ├── make_install.feature
│ ├── make_lint.feature
│ ├── make_start.feature
│ ├── make_stop.feature
│ └── make_test.feature
└── user
│ ├── managing_administrators
│ ├── adding_administrator.feature
│ ├── adding_avatar_to_administrator.feature
│ ├── browsing_administrator.feature
│ ├── deleting_administrators.feature
│ ├── deleting_multiple_administrators.feature
│ └── editing_administrator.feature
│ └── managing_customers
│ ├── browsing_customers.feature
│ └── editing_customer.feature
├── gulpfile.babel.js
├── infection.json.dist
├── package.json
├── phpspec.yml.dist
├── phpstan.neon
├── phpunit.xml.dist
├── psalm.xml
├── public
├── .htaccess
├── apple-touch-icon.png
├── config.php
├── favicon.ico
├── index.php
└── robots.txt
├── spec
└── App
│ ├── Collector
│ └── AppCollectorSpec.php
│ ├── Context
│ └── CustomerContextSpec.php
│ ├── Dashboard
│ ├── DashboardStatisticsProviderSpec.php
│ └── Statistics
│ │ └── CustomerStatisticSpec.php
│ ├── Entity
│ ├── Customer
│ │ └── CustomerSpec.php
│ ├── OAuth
│ │ └── ClientManagerSpec.php
│ └── User
│ │ ├── AdminAvatarSpec.php
│ │ ├── AdminUserSpec.php
│ │ └── AppUserSpec.php
│ ├── EventListener
│ ├── CanonicalizerListenerSpec.php
│ ├── DefaultUsernameORMListenerSpec.php
│ ├── PasswordUpdaterListenerSpec.php
│ └── UserRegistrationListenerSpec.php
│ ├── Form
│ ├── EventSubscriber
│ │ ├── AddUserFormSubscriberSpec.php
│ │ └── CustomerRegistrationFormSubscriberSpec.php
│ └── Extension
│ │ ├── CustomerTypeExtensionSpec.php
│ │ └── DateTypeExtensionSpec.php
│ └── Validator
│ └── Initializer
│ └── CustomerInitializerSpec.php
├── src
├── .htaccess
├── Collector
│ └── AppCollector.php
├── Command
│ ├── Helper
│ │ ├── CommandsRunner.php
│ │ ├── DirectoryChecker.php
│ │ └── ProgressBarCreator.php
│ ├── Installer
│ │ ├── CommandExecutor.php
│ │ ├── InstallAssetsCommand.php
│ │ ├── InstallCommand.php
│ │ ├── InstallDatabaseCommand.php
│ │ ├── InstallSampleDataCommand.php
│ │ └── SetupCommand.php
│ └── OauthServer
│ │ └── CreateClientCommand.php
├── Context
│ └── CustomerContext.php
├── Controller
│ ├── .gitignore
│ └── DashboardController.php
├── Dashboard
│ ├── DashboardStatisticsProvider.php
│ └── Statistics
│ │ ├── CustomerStatistic.php
│ │ └── StatisticInterface.php
├── DependencyInjection
│ ├── AppExtension.php
│ ├── Compiler
│ │ └── ServicesPass.php
│ └── Configuration.php
├── Entity
│ ├── .gitignore
│ ├── Customer
│ │ ├── Customer.php
│ │ └── CustomerInterface.php
│ ├── IdentifiableTrait.php
│ ├── Media
│ │ ├── File.php
│ │ └── FileInterface.php
│ ├── OAuth
│ │ ├── AccessToken.php
│ │ ├── AuthCode.php
│ │ ├── Client.php
│ │ ├── ClientManager.php
│ │ └── RefreshToken.php
│ └── User
│ │ ├── AdminAvatar.php
│ │ ├── AdminAvatarInterface.php
│ │ ├── AdminUser.php
│ │ ├── AdminUserInterface.php
│ │ ├── AppUser.php
│ │ └── AppUserInterface.php
├── EventListener
│ ├── CanonicalizerListener.php
│ ├── DefaultUsernameORMListener.php
│ ├── PasswordUpdaterListener.php
│ └── UserRegistrationListener.php
├── Fixture
│ ├── AbstractResourceFixture.php
│ ├── AdminUserFixture.php
│ ├── ApiClientFixture.php
│ ├── AppUserFixture.php
│ ├── Factory
│ │ ├── AbstractExampleFactory.php
│ │ ├── AdminUserExampleFactory.php
│ │ ├── ApiClientExampleFactory.php
│ │ ├── AppUserExampleFactory.php
│ │ └── ExampleFactoryInterface.php
│ └── OptionsResolver
│ │ └── LazyOption.php
├── Form
│ ├── EventSubscriber
│ │ ├── AddUserFormSubscriber.php
│ │ └── CustomerRegistrationFormSubscriber.php
│ ├── Extension
│ │ ├── CustomerTypeExtension.php
│ │ └── DateTypeExtension.php
│ └── Type
│ │ ├── Customer
│ │ ├── CustomerRegistrationType.php
│ │ └── CustomerSimpleRegistrationType.php
│ │ ├── DatePickerType.php
│ │ ├── DateTimePickerType.php
│ │ └── User
│ │ ├── AdminAvatarType.php
│ │ ├── AdminUserType.php
│ │ ├── AppUserRegistrationType.php
│ │ └── AppUserType.php
├── Formatter
│ └── StringInflector.php
├── Installer
│ ├── Checker
│ │ └── CommandDirectoryChecker.php
│ └── Provider
│ │ ├── DatabaseSetupCommandsProvider.php
│ │ └── DatabaseSetupCommandsProviderInterface.php
├── Kernel.php
├── Menu
│ ├── AccountMenuBuilder.php
│ └── AdminMenuBuilder.php
├── Migrations
│ ├── .gitignore
│ ├── Version20190416102143.php
│ └── Version20191231140333.php
├── Repository
│ ├── .gitignore
│ ├── CustomerRepository.php
│ └── UserRepository.php
├── Resources
│ └── config
│ │ ├── validation.yml
│ │ └── validation
│ │ └── customer.yml
└── Validator
│ └── Initializer
│ └── CustomerInitializer.php
├── symfony.lock
├── templates
├── backend
│ ├── _search.html.twig
│ ├── _security.html.twig
│ ├── admin_user
│ │ ├── _avatar_image.html.twig
│ │ └── _form.html.twig
│ ├── crud
│ │ ├── create.html.twig
│ │ ├── create
│ │ │ ├── _breadcrumb.html.twig
│ │ │ ├── _content.html.twig
│ │ │ └── _header.html.twig
│ │ ├── index.html.twig
│ │ ├── index
│ │ │ ├── _breadcrumb.html.twig
│ │ │ ├── _content.html.twig
│ │ │ └── _header.html.twig
│ │ ├── update.html.twig
│ │ └── update
│ │ │ ├── _breadcrumb.html.twig
│ │ │ ├── _content.html.twig
│ │ │ └── _header.html.twig
│ ├── customer
│ │ └── _form.html.twig
│ ├── dashboard
│ │ ├── _customers.html.twig
│ │ ├── _menu.html.twig
│ │ ├── _statistics.html.twig
│ │ └── statistics
│ │ │ └── _amount_of_customers.html.twig
│ ├── form
│ │ └── theme.html.twig
│ ├── index.html.twig
│ ├── layout.html.twig
│ ├── macro
│ │ ├── breadcrumb.html.twig
│ │ ├── pagination.html.twig
│ │ └── sorting.html.twig
│ └── security
│ │ └── login.html.twig
├── bundles
│ └── SyliusUiBundle
│ │ └── Form
│ │ └── theme.html.twig
├── data_collector
│ └── app.html.twig
├── emails
│ ├── contactRequest.html.twig
│ ├── passwordReset.html.twig
│ ├── userRegistration.html.twig
│ └── verification.html.twig
└── frontend
│ ├── _flashes.html.twig
│ ├── _footer.html.twig
│ ├── _header.html.twig
│ ├── _menu.html.twig
│ ├── account
│ ├── changePassword.html.twig
│ ├── dashboard.html.twig
│ ├── layout.html.twig
│ ├── requestPasswordReset.html.twig
│ ├── resetPassword.html.twig
│ └── updateProfile.html.twig
│ ├── form
│ └── theme.html.twig
│ ├── homepage
│ └── index.html.twig
│ ├── layout.html.twig
│ ├── login
│ ├── _form.html.twig
│ ├── _header.html.twig
│ └── _register.html.twig
│ ├── macro
│ ├── buttons.html.twig
│ └── pagination.html.twig
│ ├── menu
│ └── simple.html.twig
│ ├── register
│ ├── _form.html.twig
│ └── _header.html.twig
│ └── security
│ ├── login.html.twig
│ └── register.html.twig
├── tests
├── .gitignore
├── Behat
│ ├── Behaviour
│ │ └── Toggles.php
│ ├── Context
│ │ ├── Cli
│ │ │ ├── CommandContext.php
│ │ │ ├── DefaultContext.php
│ │ │ ├── InstallerContext.php
│ │ │ └── MakefileContext.php
│ │ ├── Hook
│ │ │ └── DoctrineORMContext.php
│ │ ├── Setup
│ │ │ ├── AdminSecurityContext.php
│ │ │ ├── AdminUserContext.php
│ │ │ ├── AppSecurityContext.php
│ │ │ ├── CustomerContext.php
│ │ │ └── UserContext.php
│ │ ├── Transform
│ │ │ ├── AdminUserContext.php
│ │ │ ├── CustomerContext.php
│ │ │ ├── SharedStorageContext.php
│ │ │ └── UserContext.php
│ │ └── Ui
│ │ │ ├── Backend
│ │ │ ├── DashboardContext.php
│ │ │ ├── ManagingAdministratorsContext.php
│ │ │ ├── ManagingCustomersContext.php
│ │ │ └── NotificationContext.php
│ │ │ ├── EmailContext.php
│ │ │ └── Frontend
│ │ │ ├── AccountContext.php
│ │ │ ├── HomepageContext.php
│ │ │ ├── LoginContext.php
│ │ │ └── RegistrationContext.php
│ ├── Element
│ │ └── Backend
│ │ │ └── TopBarElement.php
│ ├── Exception
│ │ └── NotificationExpectationMismatchException.php
│ ├── NotificationType.php
│ ├── Page
│ │ ├── Backend
│ │ │ ├── Administrator
│ │ │ │ ├── CreatePage.php
│ │ │ │ ├── IndexPage.php
│ │ │ │ └── UpdatePage.php
│ │ │ ├── Crud
│ │ │ │ ├── CreatePage.php
│ │ │ │ ├── CreatePageInterface.php
│ │ │ │ ├── IndexPage.php
│ │ │ │ ├── IndexPageInterface.php
│ │ │ │ ├── UpdatePage.php
│ │ │ │ └── UpdatePageInterface.php
│ │ │ ├── Customer
│ │ │ │ ├── IndexPage.php
│ │ │ │ └── UpdatePage.php
│ │ │ └── DashboardPage.php
│ │ └── Frontend
│ │ │ ├── Account
│ │ │ ├── ChangePasswordPage.php
│ │ │ ├── DashboardPage.php
│ │ │ ├── LoginPage.php
│ │ │ ├── ProfileUpdatePage.php
│ │ │ ├── RegisterPage.php
│ │ │ ├── RequestPasswordResetPage.php
│ │ │ ├── ResetPasswordPage.php
│ │ │ └── VerificationPage.php
│ │ │ └── HomePage.php
│ └── Service
│ │ ├── Accessor
│ │ ├── NotificationAccessor.php
│ │ ├── NotificationAccessorInterface.php
│ │ ├── TableAccessor.php
│ │ └── TableAccessorInterface.php
│ │ ├── EmailChecker.php
│ │ ├── EmailCheckerInterface.php
│ │ ├── NotificationChecker.php
│ │ ├── NotificationCheckerInterface.php
│ │ ├── Resolver
│ │ ├── CurrentPageResolver.php
│ │ └── CurrentPageResolverInterface.php
│ │ ├── SecurityService.php
│ │ ├── SecurityServiceInterface.php
│ │ ├── Setter
│ │ ├── CookieSetter.php
│ │ └── CookieSetterInterface.php
│ │ ├── SharedSecurityService.php
│ │ ├── SharedSecurityServiceInterface.php
│ │ ├── SharedStorage.php
│ │ └── SharedStorageInterface.php
├── Controller
│ ├── AuthorizedHeaderTrait.php
│ ├── Customer
│ │ ├── LoginApiTest.php
│ │ └── RefreshTokenApiTest.php
│ └── JsonApiTestCase.php
├── DataFixtures
│ └── ORM
│ │ └── authentication
│ │ └── api_user.yml
├── Resources
│ └── troll.jpg
└── Responses
│ └── Expected
│ ├── authentication
│ └── new_access_token.json
│ └── error
│ └── not_found_response.json
├── translations
├── .gitignore
├── flashes.fr.yml
├── messages.en.yml
└── messages.fr.yml
├── var
├── .gitkeep
└── SymfonyRequirements.php
├── webpack.config.js
└── yarn.lock
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["@babel/preset-env", {
4 | "targets": {
5 | "browsers": [
6 | "last 2 versions",
7 | "Firefox ESR",
8 | "IE >= 9",
9 | "Android >= 4.0",
10 | "iOS >= 7"
11 | ]
12 | },
13 | "modules": false,
14 | "exclude": [
15 | "transform-async-to-generator",
16 | "transform-regenerator"
17 | ],
18 | "useBuiltIns": false
19 | }]
20 | ],
21 | "exclude": "node_modules/**"
22 | }
23 |
--------------------------------------------------------------------------------
/.env.test:
--------------------------------------------------------------------------------
1 | APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629
2 |
3 | KERNEL_CLASS='App\Kernel'
4 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug-report---.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "Bug Report \U0001F41B"
3 | about: Report a problem or error
4 |
5 | ---
6 |
7 |
8 | **ApiCore version affected**: 1.x.y
9 |
10 | **Description**
11 |
12 |
13 | **Steps to reproduce**
14 |
15 |
16 | **Possible Solution**
17 |
18 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/documentation-issue---.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "Documentation Issue \U0001F4D6"
3 | about: Report missing or bugged documentation
4 |
5 | ---
6 |
7 | **ApiCore docs version**: 1.x / latest
8 |
9 | **Description**
10 |
11 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature-request--.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request ✅
3 | about: Suggest an idea for a feature or improvement
4 |
5 | ---
6 |
7 | **Describe the proposed solution**
8 |
9 |
10 | **Describe alternatives you've considered**
11 |
12 |
13 | **Additional context**
14 |
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /app/config/parameters.yml
2 | /build/
3 | /phpunit.xml
4 | /var/*
5 | !var/.gitkeep
6 | /vendor/
7 |
8 | /public/assets
9 | /public/bundles
10 | /public/css
11 | /public/js
12 | /public/media
13 |
14 | **/node_modules/*
15 |
16 | .idea
17 | *.DS_Store
18 |
19 | /etc/build/*
20 | !/etc/build/.gitignore
21 |
22 | /behat.yml
23 | /phpspec.yml
24 |
25 | /Makefile*
26 | /!Makefile*.dist
27 |
28 | ###> symfony/framework-bundle ###
29 | /.env.*.local
30 | /.env.local
31 | /.env.local.php
32 | /public/bundles/
33 | /public/media/*
34 | /var/
35 | /vendor/
36 | ###< symfony/framework-bundle ###
37 | ###> phpunit/phpunit ###
38 | /phpunit.xml
39 | ###< phpunit/phpunit ###
40 | ###> friendsofphp/php-cs-fixer ###
41 | /.php_cs
42 | /.php_cs.cache
43 | ###< friendsofphp/php-cs-fixer ###
44 |
45 | ###> infection/infection ###
46 | infection-log.txt
47 | coverage/*
48 | ###< infection/infection ###
49 |
50 | ###> symfony/webpack-encore-bundle ###
51 | /node_modules/
52 | /public/build/
53 | npm-debug.log
54 | yarn-error.log
55 | ###< symfony/webpack-encore-bundle ###
56 |
57 | ###> liip/imagine-bundle ###
58 | /public/media/cache/
59 | ###< liip/imagine-bundle ###
60 |
--------------------------------------------------------------------------------
/.php_cs.dist:
--------------------------------------------------------------------------------
1 | setRules([
5 | '@Symfony' => true,
6 | 'array_syntax' => ['syntax' => 'short'],
7 | ])
8 | ;
9 |
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source 'https://rubygems.org'
2 |
3 | gem 'capistrano'
4 | gem 'capistrano-symfony'
5 | gem 'capistrano-composer'
6 | gem 'capistrano-file-permissions', :git => 'https://github.com/capistrano/file-permissions', :ref => '0122fe4'
7 | gem 'ed25519'
8 | gem 'bcrypt_pbkdf'
9 | gem 'ed25519'
10 | gem 'bcrypt_pbkdf'
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2018-2019 Monofony
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/Makefile.dist:
--------------------------------------------------------------------------------
1 | include Makefile.install.dist
2 | include Makefile.test.dist
3 | include Makefile.validation.dist
4 |
5 | docs-build-default:
6 | cd docs && sphinx-build -b html . build -a
7 |
8 | install-default: composer-install app-install fixtures-load yarn-install yarn-build
9 |
10 | start-default:
11 | symfony server:start --no-tls ${ARGS}
12 |
13 | stop-default:
14 | symfony server:stop
15 |
16 | test-default: validate-all test-all
17 |
18 | lint-default:
19 | vendor/bin/php-cs-fixer fix src
20 |
21 | %: %-default
22 | @ true
23 |
--------------------------------------------------------------------------------
/Makefile.install.dist:
--------------------------------------------------------------------------------
1 | composer-install-default:
2 | composer install --no-interaction
3 |
4 | app-install-default:
5 | bin/console app:install -n
6 |
7 | fixtures-load-default:
8 | bin/console sylius:fixtures:load default --no-interaction
9 |
10 | yarn-install-default:
11 | yarn install
12 |
13 | yarn-build-default:
14 | yarn encore production
15 |
16 | %: %-default
17 | @ true
18 |
--------------------------------------------------------------------------------
/Makefile.validation.dist:
--------------------------------------------------------------------------------
1 | validate-all: validate-composer validate-security validate-doctrine-schema validate-twig validate-yaml-files
2 |
3 | validate-composer:
4 | composer validate --strict
5 |
6 | validate-doctrine-schema:
7 | bin/console doctrine:schema:validate
8 |
9 | validate-security:
10 | vendor/bin/security-checker security:check
11 |
12 | validate-twig:
13 | bin/console lint:twig templates
14 |
15 | validate-yaml-files:
16 | bin/console lint:yaml config --parse-tags
17 |
--------------------------------------------------------------------------------
/assets/backend/img/avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/assets/backend/img/avatar.png
--------------------------------------------------------------------------------
/assets/backend/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/assets/backend/img/logo.png
--------------------------------------------------------------------------------
/assets/backend/js/app-images-preview.js:
--------------------------------------------------------------------------------
1 | import $ from 'jquery';
2 |
3 | const displayUploadedImage = function displayUploadedImage(input) {
4 | if (input.files && input.files[0]) {
5 | const reader = new FileReader();
6 |
7 | reader.onload = (event) => {
8 | const image = $(input).parent().siblings('.image');
9 |
10 | if (image.length > 0) {
11 | image.attr('src', event.target.result);
12 | } else {
13 | const img = $('');
14 | img.attr('src', event.target.result);
15 | $(input).parent().before(img);
16 | }
17 | };
18 |
19 | reader.readAsDataURL(input.files[0]);
20 | }
21 | };
22 |
23 | $.fn.extend({
24 | previewUploadedImage(root) {
25 | $(root).on('change', 'input[type="file"]', function() {
26 | displayUploadedImage(this);
27 | });
28 | },
29 | });
30 |
--------------------------------------------------------------------------------
/assets/backend/js/app.js:
--------------------------------------------------------------------------------
1 | import '../../common/js/app';
2 |
3 | import 'semantic-ui-calendar/dist/calendar';
4 |
5 | import './app-date-time-picker';
6 | import './app-images-preview';
7 | import './sylius-compound-form-errors';
8 |
9 | import '../scss/main.scss';
10 |
11 | $(document).ready(function () {
12 | $(document).previewUploadedImage('#sylius_admin_user_avatar');
13 | $('.sylius-autocomplete').autoComplete();
14 | $('.sylius-tabular-form').addTabErrors();
15 | $('.ui.accordion').addAccordionErrors();
16 | $('#sylius_customer_createUser').change(function () {
17 | $('#user-form').toggle();
18 | });
19 |
20 | $('.app-date-picker').datePicker();
21 | $('.app-date-time-picker').dateTimePicker();
22 | });
23 |
--------------------------------------------------------------------------------
/assets/backend/scss/main.scss:
--------------------------------------------------------------------------------
1 | @import "../../common/scss/style";
2 |
--------------------------------------------------------------------------------
/assets/backend/webpack.config.js:
--------------------------------------------------------------------------------
1 | var build = require('../config-builder');
2 |
3 | module.exports = build('backend');
4 |
--------------------------------------------------------------------------------
/assets/common/js/app.js:
--------------------------------------------------------------------------------
1 | import './shim-polyfill';
2 | import './shim-semantic-ui';
3 |
4 | import 'semantic-ui-css/components/accordion';
5 | import '../../../vendor/sylius/ui-bundle/Resources/private/js/app';
6 | import '../../../vendor/sylius/ui-bundle/Resources/private/js/sylius-auto-complete';
7 |
--------------------------------------------------------------------------------
/assets/common/js/shim-polyfill.js:
--------------------------------------------------------------------------------
1 | import 'babel-polyfill';
2 |
--------------------------------------------------------------------------------
/assets/common/js/shim-semantic-ui.js:
--------------------------------------------------------------------------------
1 | import 'semantic-ui-css/components/accordion';
2 | import 'semantic-ui-css/components/api';
3 | import 'semantic-ui-css/components/calendar';
4 | import 'semantic-ui-css/components/checkbox';
5 | import 'semantic-ui-css/components/dimmer';
6 | import 'semantic-ui-css/components/dropdown';
7 | import 'semantic-ui-css/components/embed';
8 | import 'semantic-ui-css/components/form';
9 | import 'semantic-ui-css/components/modal';
10 | import 'semantic-ui-css/components/nag';
11 | import 'semantic-ui-css/components/popup';
12 | import 'semantic-ui-css/components/progress';
13 | import 'semantic-ui-css/components/range';
14 | import 'semantic-ui-css/components/rating';
15 | import 'semantic-ui-css/components/search';
16 | import 'semantic-ui-css/components/shape';
17 | import 'semantic-ui-css/components/sidebar';
18 | import 'semantic-ui-css/components/site';
19 | import 'semantic-ui-css/components/slider';
20 | import 'semantic-ui-css/components/state';
21 | import 'semantic-ui-css/components/sticky';
22 | import 'semantic-ui-css/components/tab';
23 | import 'semantic-ui-css/components/toast';
24 | import 'semantic-ui-css/components/transition';
25 | import 'semantic-ui-css/components/visibility';
26 |
--------------------------------------------------------------------------------
/assets/common/scss/style.scss:
--------------------------------------------------------------------------------
1 | @import "../../../vendor/sylius/ui-bundle/Resources/private/sass/main";
2 | @import "ui";
3 |
--------------------------------------------------------------------------------
/assets/frontend/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/assets/frontend/img/logo.png
--------------------------------------------------------------------------------
/assets/frontend/js/app.js:
--------------------------------------------------------------------------------
1 | import '../../common/js/app';
2 | import '../scss/main.scss';
3 |
4 |
5 | $(document).ready(function () {
6 | $('.sylius-autocomplete').autoComplete();
7 | });
8 |
--------------------------------------------------------------------------------
/assets/frontend/js/shim-lightbox.js:
--------------------------------------------------------------------------------
1 | import lightbox from 'lightbox2';
2 |
3 | window.lightbox = lightbox;
4 |
--------------------------------------------------------------------------------
/assets/frontend/scss/main.scss:
--------------------------------------------------------------------------------
1 | @import "../../common/scss/style";
2 |
--------------------------------------------------------------------------------
/assets/frontend/webpack.config.js:
--------------------------------------------------------------------------------
1 | var build = require('../config-builder');
2 |
3 | module.exports = build('frontend');
4 |
--------------------------------------------------------------------------------
/bin/console:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | getParameterOption(['--env', '-e'], null, true)) {
19 | putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
20 | }
21 |
22 | if ($input->hasParameterOption('--no-debug', true)) {
23 | putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
24 | }
25 |
26 | require dirname(__DIR__).'/config/bootstrap.php';
27 |
28 | if ($_SERVER['APP_DEBUG']) {
29 | umask(0000);
30 |
31 | if (class_exists(Debug::class)) {
32 | Debug::enable();
33 | }
34 | }
35 |
36 | $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
37 | $application = new Application($kernel);
38 | $application->run($input);
39 |
--------------------------------------------------------------------------------
/config/bootstrap.php:
--------------------------------------------------------------------------------
1 | =1.2)
9 | if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {
10 | $_SERVER += $env;
11 | $_ENV += $env;
12 | } elseif (!class_exists(Dotenv::class)) {
13 | throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
14 | } else {
15 | // load all the .env files
16 | (new Dotenv(true))->loadEnv(dirname(__DIR__).'/.env');
17 | }
18 |
19 | $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
20 | $_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];
21 | $_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';
22 |
--------------------------------------------------------------------------------
/config/packages/api_platform.yaml:
--------------------------------------------------------------------------------
1 | api_platform:
2 | version: !php/const App\Kernel::VERSION
3 | mapping:
4 | paths: ['%kernel.project_dir%/src/Entity']
5 | patch_formats:
6 | json: ['application/merge-patch+json']
7 | swagger:
8 | versions: [3]
9 |
--------------------------------------------------------------------------------
/config/packages/assets.yaml:
--------------------------------------------------------------------------------
1 | framework:
2 | assets:
3 | json_manifest_path: '%kernel.project_dir%/public/assets/backend/manifest.json'
4 | packages:
5 | backend:
6 | json_manifest_path: '%kernel.project_dir%/public/assets/backend/manifest.json'
7 | frontend:
8 | json_manifest_path: '%kernel.project_dir%/public/assets/frontend/manifest.json'
9 |
--------------------------------------------------------------------------------
/config/packages/dev/debug.yaml:
--------------------------------------------------------------------------------
1 | debug:
2 | # Forwards VarDumper Data clones to a centralized server allowing to inspect dumps on CLI or in your browser.
3 | # See the "server:dump" command to start a new server.
4 | dump_destination: "tcp://%env(VAR_DUMPER_SERVER)%"
5 |
--------------------------------------------------------------------------------
/config/packages/dev/jms_serializer.yaml:
--------------------------------------------------------------------------------
1 | jms_serializer:
2 | visitors:
3 | json:
4 | options:
5 | - JSON_PRETTY_PRINT
6 | - JSON_UNESCAPED_SLASHES
7 | - JSON_PRESERVE_ZERO_FRACTION
8 |
--------------------------------------------------------------------------------
/config/packages/dev/monolog.yaml:
--------------------------------------------------------------------------------
1 | monolog:
2 | handlers:
3 | main:
4 | type: stream
5 | path: "%kernel.logs_dir%/%kernel.environment%.log"
6 | level: debug
7 | channels: ["!event"]
8 | # uncomment to get logging in your browser
9 | # you may have to allow bigger header sizes in your Web server configuration
10 | #firephp:
11 | # type: firephp
12 | # level: info
13 | #chromephp:
14 | # type: chromephp
15 | # level: info
16 | console:
17 | type: console
18 | process_psr_3_messages: false
19 | channels: ["!event", "!doctrine", "!console"]
20 |
--------------------------------------------------------------------------------
/config/packages/dev/nelmio_alice.yaml:
--------------------------------------------------------------------------------
1 | nelmio_alice:
2 | functions_blacklist:
3 | - 'current'
4 |
--------------------------------------------------------------------------------
/config/packages/dev/routing.yaml:
--------------------------------------------------------------------------------
1 | framework:
2 | router:
3 | strict_requirements: true
4 |
--------------------------------------------------------------------------------
/config/packages/dev/swiftmailer.yaml:
--------------------------------------------------------------------------------
1 | # See https://symfony.com/doc/current/email/dev_environment.html
2 | swiftmailer:
3 | # send all emails to a specific address
4 | #delivery_addresses: ['me@example.com']
5 |
--------------------------------------------------------------------------------
/config/packages/dev/web_profiler.yaml:
--------------------------------------------------------------------------------
1 | web_profiler:
2 | toolbar: true
3 | intercept_redirects: false
4 |
5 | framework:
6 | profiler: { only_exceptions: false }
7 |
--------------------------------------------------------------------------------
/config/packages/doctrine.yaml:
--------------------------------------------------------------------------------
1 | parameters:
2 | # Adds a fallback DATABASE_URL if the env var is not set.
3 | # This allows you to run cache:warmup even if your
4 | # environment variables are not available yet.
5 | # You should not need to change this value.
6 | env(DATABASE_URL): ''
7 |
8 | doctrine:
9 | dbal:
10 | # configure these for your database server
11 | driver: 'pdo_mysql'
12 | server_version: '5.6'
13 | charset: utf8
14 | default_table_options:
15 | charset: utf8
16 | collate: utf8_unicode_ci
17 |
18 | url: '%env(resolve:DATABASE_URL)%'
19 |
20 | orm:
21 | auto_generate_proxy_classes: '%kernel.debug%'
22 | naming_strategy: doctrine.orm.naming_strategy.underscore
23 | auto_mapping: true
24 | mappings:
25 | App:
26 | is_bundle: false
27 | type: annotation
28 | dir: '%kernel.project_dir%/src/Entity'
29 | prefix: 'App\Entity'
30 | alias: App
31 |
--------------------------------------------------------------------------------
/config/packages/doctrine_migrations.yaml:
--------------------------------------------------------------------------------
1 | doctrine_migrations:
2 | dir_name: '%kernel.project_dir%/src/Migrations'
3 | namespace: App\Migrations
4 |
--------------------------------------------------------------------------------
/config/packages/eight_points_guzzle.yaml:
--------------------------------------------------------------------------------
1 | eight_points_guzzle:
2 | clients:
3 | my_client:
4 | # Write here the host where to do requests
5 | # base_url: "http://target.url"
6 |
7 | options:
8 | timeout: 30
9 |
10 | # Configure headers.
11 | # More info: http://docs.guzzlephp.org/en/stable/request-options.html#headers
12 | headers:
13 | User-Agent: "EightpointsGuzzleBundle/7.0"
14 |
15 | # Find plugins here:
16 | # https://github.com/8p/EightPointsGuzzleBundle#known-and-supported-plugins
17 | plugin: ~
18 |
--------------------------------------------------------------------------------
/config/packages/fos_oauth_server.yaml:
--------------------------------------------------------------------------------
1 | fos_oauth_server:
2 | db_driver: orm
3 | client_class: App\Entity\OAuth\Client
4 | access_token_class: App\Entity\OAuth\AccessToken
5 | refresh_token_class: App\Entity\OAuth\RefreshToken
6 | auth_code_class: App\Entity\OAuth\AuthCode
7 | service:
8 | user_provider: sylius.app_user_provider.email_or_name_based
9 | client_manager: App\Entity\OAuth\ClientManager
10 |
--------------------------------------------------------------------------------
/config/packages/fos_rest.yaml:
--------------------------------------------------------------------------------
1 | fos_rest:
2 | exception: true
3 | view:
4 | formats:
5 | json: true
6 | xml: true
7 | empty_content: 204
8 | format_listener:
9 | rules:
10 | - { path: '^/api/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true }
11 | - { path: '^/', stop: true }
12 |
--------------------------------------------------------------------------------
/config/packages/framework.yaml:
--------------------------------------------------------------------------------
1 | parameters:
2 | locale: fr_FR
3 | secret: '%env(resolve:APP_SECRET)%'
4 |
5 | framework:
6 | #esi: ~
7 | translator: { fallbacks: ["%locale%"] }
8 | secret: "%secret%"
9 | form: ~
10 | csrf_protection: ~
11 | validation: { enable_annotations: true }
12 | #serializer: { enable_annotations: true }
13 | templating:
14 | engines: ['twig']
15 | default_locale: "%locale%"
16 | trusted_hosts: ~
17 | session:
18 | # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
19 | handler_id: ~
20 | fragments: ~
21 | http_method_override: true
22 | php_errors:
23 | log: true
24 |
--------------------------------------------------------------------------------
/config/packages/jms_serializer.yaml:
--------------------------------------------------------------------------------
1 | jms_serializer:
2 | visitors:
3 | xml:
4 | format_output: '%kernel.debug%'
5 | # metadata:
6 | # auto_detection: false
7 | # directories:
8 | # any-name:
9 | # namespace_prefix: "My\\FooBundle"
10 | # path: "@MyFooBundle/Resources/config/serializer"
11 | # another-name:
12 | # namespace_prefix: "My\\BarBundle"
13 | # path: "@MyBarBundle/Resources/config/serializer"
14 |
--------------------------------------------------------------------------------
/config/packages/liip_imagine.yaml:
--------------------------------------------------------------------------------
1 | # See dos how to configure the bundle: https://symfony.com/doc/current/bundles/LiipImagineBundle/basic-usage.html
2 | liip_imagine:
3 | # valid drivers options include "gd" or "gmagick" or "imagick"
4 | driver: "gd"
5 | loaders:
6 | default:
7 | filesystem:
8 | locator: filesystem_insecure
9 | data_root:
10 | - '%kernel.project_dir%/public'
11 | filter_sets:
12 | # @see http://symfony.com/doc/current/bundles/LiipImagineBundle/filters.html
13 | cache: ~
14 | default:
15 | quality: 100
16 | filters:
17 | auto_rotate: ~
18 | relative_resize: { scale: 1 }
19 | app_backend_admin_user_avatar_thumbnail:
20 | filters:
21 | thumbnail: { size: [50, 50], mode: outbound }
22 |
--------------------------------------------------------------------------------
/config/packages/nelmio_cors.yaml:
--------------------------------------------------------------------------------
1 | nelmio_cors:
2 | defaults:
3 | origin_regex: true
4 | allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
5 | allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
6 | allow_headers: ['Content-Type', 'Authorization']
7 | expose_headers: ['Link']
8 | max_age: 3600
9 | paths:
10 | '^/': null
11 |
--------------------------------------------------------------------------------
/config/packages/prod/doctrine.yaml:
--------------------------------------------------------------------------------
1 | doctrine:
2 | orm:
3 | metadata_cache_driver:
4 | type: service
5 | id: doctrine.system_cache_provider
6 | query_cache_driver:
7 | type: service
8 | id: doctrine.system_cache_provider
9 | result_cache_driver:
10 | type: service
11 | id: doctrine.result_cache_provider
12 |
13 | services:
14 | doctrine.result_cache_provider:
15 | class: Symfony\Component\Cache\DoctrineProvider
16 | public: false
17 | arguments:
18 | - '@doctrine.result_cache_pool'
19 | doctrine.system_cache_provider:
20 | class: Symfony\Component\Cache\DoctrineProvider
21 | public: false
22 | arguments:
23 | - '@doctrine.system_cache_pool'
24 |
25 | framework:
26 | cache:
27 | pools:
28 | doctrine.result_cache_pool:
29 | adapter: cache.app
30 | doctrine.system_cache_pool:
31 | adapter: cache.system
32 |
--------------------------------------------------------------------------------
/config/packages/prod/jms_serializer.yaml:
--------------------------------------------------------------------------------
1 | jms_serializer:
2 | visitors:
3 | json:
4 | options:
5 | - JSON_UNESCAPED_SLASHES
6 | - JSON_PRESERVE_ZERO_FRACTION
7 |
--------------------------------------------------------------------------------
/config/packages/prod/monolog.yaml:
--------------------------------------------------------------------------------
1 | monolog:
2 | handlers:
3 | main:
4 | type: fingers_crossed
5 | action_level: error
6 | handler: nested
7 | excluded_404s:
8 | # regex: exclude all 404 errors from the logs
9 | - ^/
10 | nested:
11 | type: stream
12 | path: "%kernel.logs_dir%/%kernel.environment%.log"
13 | level: debug
14 | console:
15 | type: console
16 | process_psr_3_messages: false
17 | channels: ["!event", "!doctrine"]
18 |
--------------------------------------------------------------------------------
/config/packages/prod/webpack_encore.yaml:
--------------------------------------------------------------------------------
1 | #webpack_encore:
2 | # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
3 | # Available in version 1.2
4 | #cache: true
5 |
--------------------------------------------------------------------------------
/config/packages/routing.yaml:
--------------------------------------------------------------------------------
1 | framework:
2 | router:
3 | strict_requirements: ~
4 |
--------------------------------------------------------------------------------
/config/packages/security_checker.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | _defaults:
3 | autowire: true
4 | autoconfigure: true
5 |
6 | SensioLabs\Security\SecurityChecker: ~
7 |
8 | SensioLabs\Security\Command\SecurityCheckerCommand: ~
9 |
--------------------------------------------------------------------------------
/config/packages/sonata_block.yaml:
--------------------------------------------------------------------------------
1 | sonata_block:
2 | blocks:
3 | sonata.block.service.template:
4 | settings:
5 | customer: ~
6 | form: ~
7 | resource: ~
8 | resources: ~
9 |
--------------------------------------------------------------------------------
/config/packages/sonata_core.yaml:
--------------------------------------------------------------------------------
1 | sonata_core:
2 | form:
3 | mapping:
4 | enabled: false
5 |
--------------------------------------------------------------------------------
/config/packages/stof_doctrine_extensions.yaml:
--------------------------------------------------------------------------------
1 | # Read the documentation: https://symfony.com/doc/current/bundles/StofDoctrineExtensionsBundle/index.html
2 | # See the official DoctrineExtensions documentation for more details: https://github.com/Atlantic18/DoctrineExtensions/tree/master/doc/
3 | stof_doctrine_extensions:
4 | default_locale: "%locale%"
5 | orm:
6 | default:
7 | tree: true
8 | sluggable: true
9 | timestampable: true
10 | softdeleteable: false
11 | sortable: true
12 |
--------------------------------------------------------------------------------
/config/packages/swiftmailer.yaml:
--------------------------------------------------------------------------------
1 |
2 | swiftmailer:
3 | url: '%env(MAILER_URL)%'
4 | spool: { type: 'memory' }
5 |
--------------------------------------------------------------------------------
/config/packages/sylius_customer.yaml:
--------------------------------------------------------------------------------
1 | imports:
2 | - { resource: "@SyliusCustomerBundle/Resources/config/app/config.yml" }
3 |
4 | sylius_customer:
5 | resources:
6 | customer:
7 | classes:
8 | model: App\Entity\Customer\Customer
9 | repository: App\Repository\CustomerRepository
10 |
--------------------------------------------------------------------------------
/config/packages/sylius_mailer.yaml:
--------------------------------------------------------------------------------
1 | sylius_mailer:
2 | sender:
3 | name: '%email_name%'
4 | address: '%email_sender%'
5 | emails:
6 | contact_request:
7 | subject: app.emails.contact_request.subject
8 | template: emails/contactRequest.html.twig
9 | user_registration:
10 | subject: app.emails.user_registration.subject
11 | template: emails/userRegistration.html.twig
12 | reset_password_token:
13 | subject: app.emails.user.password_reset.subject
14 | template: emails/passwordReset.html.twig
15 | verification_token:
16 | subject: app.emails.user.verification_token.subject
17 | template: emails/verification.html.twig
18 |
19 |
--------------------------------------------------------------------------------
/config/packages/sylius_resource.yaml:
--------------------------------------------------------------------------------
1 | sylius_resource:
2 | resources: ~
3 |
--------------------------------------------------------------------------------
/config/packages/sylius_user.yaml:
--------------------------------------------------------------------------------
1 | imports:
2 | - { resource: "@SyliusUserBundle/Resources/config/app/config.yml" }
3 |
4 | security:
5 | encoders:
6 | argon2i: argon2id
7 |
8 | sylius_user:
9 | resources:
10 | app:
11 | user:
12 | classes:
13 | model: App\Entity\User\AppUser
14 | repository: App\Repository\UserRepository
15 | form: App\Form\Type\User\AppUserType
16 | admin:
17 | user:
18 | classes:
19 | model: App\Entity\User\AdminUser
20 | repository: Sylius\Bundle\UserBundle\Doctrine\ORM\UserRepository
21 | form: App\Form\Type\User\AdminUserType
22 | admin_oauth:
23 | user:
24 | classes:
25 | model: Sylius\Component\User\Model\UserOAuth
26 | interface: Sylius\Component\User\Model\UserOAuthInterface
27 | controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
28 |
--------------------------------------------------------------------------------
/config/packages/test/fidry_alice_data_fixtures.yaml:
--------------------------------------------------------------------------------
1 | fidry_alice_data_fixtures:
2 | default_purge_mode: no_purge
3 |
--------------------------------------------------------------------------------
/config/packages/test/framework.yaml:
--------------------------------------------------------------------------------
1 | parameters:
2 | locale: en_US
3 |
4 | framework:
5 | test: ~
6 | session:
7 | storage_id: session.storage.mock_file
8 |
--------------------------------------------------------------------------------
/config/packages/test/monolog.yaml:
--------------------------------------------------------------------------------
1 | monolog:
2 | handlers:
3 | main:
4 | type: stream
5 | path: "%kernel.logs_dir%/%kernel.environment%.log"
6 | level: debug
7 | channels: ["!event"]
8 |
--------------------------------------------------------------------------------
/config/packages/test/nelmio_alice.yaml:
--------------------------------------------------------------------------------
1 | imports:
2 | - { resource: ../dev/nelmio_alice.yaml }
3 |
--------------------------------------------------------------------------------
/config/packages/test/routing.yaml:
--------------------------------------------------------------------------------
1 | framework:
2 | router:
3 | strict_requirements: true
4 |
--------------------------------------------------------------------------------
/config/packages/test/swiftmailer.yaml:
--------------------------------------------------------------------------------
1 | swiftmailer:
2 | disable_delivery: true
3 | logging: true
4 | spool:
5 | type: file
6 | path: "%kernel.cache_dir%/spool"
7 |
--------------------------------------------------------------------------------
/config/packages/test/translation.yaml:
--------------------------------------------------------------------------------
1 | parameters:
2 | locale: en_US
3 |
4 | framework:
5 | default_locale: '%locale%'
6 | translator:
7 | paths:
8 | - '%kernel.project_dir%/translations'
9 | fallbacks:
10 | - '%locale%'
11 |
--------------------------------------------------------------------------------
/config/packages/test/web_profiler.yaml:
--------------------------------------------------------------------------------
1 | web_profiler:
2 | toolbar: false
3 | intercept_redirects: false
4 |
5 | framework:
6 | profiler: { collect: false }
7 |
--------------------------------------------------------------------------------
/config/packages/translation.yaml:
--------------------------------------------------------------------------------
1 | framework:
2 | default_locale: '%locale%'
3 | translator:
4 | default_path: '%kernel.project_dir%/translations'
5 | fallbacks:
6 | - '%locale%'
7 |
--------------------------------------------------------------------------------
/config/packages/twig.yaml:
--------------------------------------------------------------------------------
1 | twig:
2 | debug: "%kernel.debug%"
3 | strict_variables: "%kernel.debug%"
4 | globals:
5 | app_name_meta:
6 | version: !php/const App\Kernel::VERSION
7 |
--------------------------------------------------------------------------------
/config/packages/twig_extensions.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | _defaults:
3 | public: false
4 | autowire: true
5 | autoconfigure: true
6 |
7 | # Uncomment any lines below to activate that Twig extension
8 | Twig\Extensions\ArrayExtension: ~
9 | #Twig\Extensions\DateExtension: ~
10 | Twig\Extensions\IntlExtension: ~
11 | Twig\Extensions\TextExtension: ~
12 |
--------------------------------------------------------------------------------
/config/packages/validator.yaml:
--------------------------------------------------------------------------------
1 | framework:
2 | validation:
3 | email_validation_mode: html5
4 |
--------------------------------------------------------------------------------
/config/packages/vich_uploader.yaml:
--------------------------------------------------------------------------------
1 | vich_uploader:
2 | db_driver: orm
3 |
4 | mappings:
5 | admin_avatar:
6 | uri_prefix: /media/avatar
7 | upload_destination: '%kernel.project_dir%/public/media/avatar'
8 | namer: Vich\UploaderBundle\Naming\OrignameNamer
9 |
--------------------------------------------------------------------------------
/config/packages/webpack_encore.yaml:
--------------------------------------------------------------------------------
1 | webpack_encore:
2 | # The path where Encore is building the assets.
3 | # This should match Encore.setOutputPath() in webpack.config.js.
4 | output_path: '%kernel.project_dir%/public/build'
5 | # If multiple builds are defined (as shown below), you can disable the default build:
6 | # output_path: false
7 |
8 | # if using Encore.enableIntegrityHashes() specify the crossorigin attribute value (default: false, or use 'anonymous' or 'use-credentials')
9 | # crossorigin: 'anonymous'
10 |
11 | # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes).
12 | # To enable caching for the production environment, creating a webpack_encore.yaml in the config/packages/prod directory with this value set to true
13 | # Available in version 1.2
14 | #cache: false
15 |
--------------------------------------------------------------------------------
/config/routes.yaml:
--------------------------------------------------------------------------------
1 | app_backend:
2 | resource: "routes/backend.yaml"
3 | prefix: admin
4 |
5 | app_frontend:
6 | resource: "routes/frontend.yaml"
7 |
8 | app_api:
9 | resource: "routes/api.yaml"
10 | prefix: /api
11 | defaults:
12 | _format: json
13 |
--------------------------------------------------------------------------------
/config/routes/annotations.yaml:
--------------------------------------------------------------------------------
1 | controllers:
2 | resource: ../../src/Controller/
3 | type: annotation
4 |
--------------------------------------------------------------------------------
/config/routes/api.yaml:
--------------------------------------------------------------------------------
1 | #app_api_your_respource:
2 | # resource: "api/your_resource.yaml"
3 |
4 | fos_oauth_server_token:
5 | resource: "@FOSOAuthServerBundle/Resources/config/routing/token.xml"
6 |
7 | fos_oauth_server_authorize:
8 | resource: "@FOSOAuthServerBundle/Resources/config/routing/authorize.xml"
9 |
--------------------------------------------------------------------------------
/config/routes/api_platform.yaml:
--------------------------------------------------------------------------------
1 | api_platform:
2 | resource: .
3 | type: api_platform
4 | prefix: /api
5 |
--------------------------------------------------------------------------------
/config/routes/backend.yaml:
--------------------------------------------------------------------------------
1 | app_backend_dashboard:
2 | path: /
3 | defaults:
4 | _controller: App\Controller\DashboardController:indexAction
5 | template: 'backend/index.html.twig'
6 |
7 | app_backend_partial:
8 | resource: "backend/partial.yaml"
9 | prefix: /_partial
10 |
11 | sylius_backend_admin_user:
12 | resource: "backend/admin_user.yaml"
13 |
14 | sylius_backend_customer:
15 | resource: "backend/customer.yaml"
16 |
17 | sylius_backend_security:
18 | resource: "backend/security.yaml"
19 |
--------------------------------------------------------------------------------
/config/routes/backend/admin_user.yaml:
--------------------------------------------------------------------------------
1 | sylius_backend_admin_user:
2 | resource: |
3 | alias: sylius.admin_user
4 | section: backend
5 | path: users
6 | except: ['show']
7 | redirect: index
8 | grid: sylius_backend_admin_user
9 | vars:
10 | all:
11 | subheader: sylius.ui.manage_users_able_to_access_administration_panel
12 | templates:
13 | form: backend/admin_user/_form.html.twig
14 | index:
15 | icon: lock
16 | templates: backend/crud
17 | type: sylius.resource
18 |
--------------------------------------------------------------------------------
/config/routes/backend/customer.yaml:
--------------------------------------------------------------------------------
1 | sylius_backend_customer:
2 | resource: |
3 | section: backend
4 | alias: sylius.customer
5 | templates: 'backend/crud'
6 | grid: sylius_backend_customer
7 | redirect: index
8 | vars:
9 | all:
10 | subheader: sylius.ui.manage_your_customers
11 | templates:
12 | form: backend/customer/_form.html.twig
13 | index:
14 | icon: users
15 | type: sylius.resource
--------------------------------------------------------------------------------
/config/routes/backend/partial.yaml:
--------------------------------------------------------------------------------
1 | sylius_backend_partial_customer:
2 | resource: partial/customer.yaml
3 | prefix: /customers
4 |
--------------------------------------------------------------------------------
/config/routes/backend/partial/customer.yaml:
--------------------------------------------------------------------------------
1 | sylius_backend_partial_customer_latest:
2 | path: /latest/{count}
3 | methods: [GET]
4 | defaults:
5 | _controller: sylius.controller.customer::indexAction
6 | _sylius:
7 | repository:
8 | method: findLatest
9 | arguments: ['!!int $count']
10 | template: $template
11 |
--------------------------------------------------------------------------------
/config/routes/backend/security.yaml:
--------------------------------------------------------------------------------
1 | sylius_backend_login:
2 | path: /login
3 | defaults:
4 | _controller: sylius.controller.security:loginAction
5 | _sylius:
6 | template: backend/security/login.html.twig
7 | permission: true
8 |
9 | sylius_backend_login_check:
10 | path: /login-check
11 | defaults:
12 | _controller: sylius.controller.security:checkAction
13 |
14 | sylius_backend_logout:
15 | path: /logout
16 |
--------------------------------------------------------------------------------
/config/routes/dev/twig.yaml:
--------------------------------------------------------------------------------
1 | _errors:
2 | resource: '@TwigBundle/Resources/config/routing/errors.xml'
3 | prefix: /_error
4 |
--------------------------------------------------------------------------------
/config/routes/dev/web_profiler.yaml:
--------------------------------------------------------------------------------
1 | web_profiler_wdt:
2 | resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
3 | prefix: /_wdt
4 |
5 | web_profiler_profiler:
6 | resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
7 | prefix: /_profiler
8 |
--------------------------------------------------------------------------------
/config/routes/frontend.yaml:
--------------------------------------------------------------------------------
1 | app_frontend_homepage:
2 | path: /
3 | defaults:
4 | _controller: FrameworkBundle:Template:template
5 | template: 'frontend/homepage/index.html.twig'
6 |
7 | app_account:
8 | resource: "frontend/account.yaml"
9 | prefix: "mon-compte"
10 |
11 | sylius_security:
12 | resource: "frontend/security.yaml"
13 |
14 | app_frontend_partial:
15 | resource: "frontend/partial.yaml"
16 | prefix: "/_partial"
17 |
--------------------------------------------------------------------------------
/config/routes/frontend/partial.yaml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/config/routes/frontend/partial.yaml
--------------------------------------------------------------------------------
/config/routes/liip_imagine.yaml:
--------------------------------------------------------------------------------
1 | _liip_imagine:
2 | resource: "@LiipImagineBundle/Resources/config/routing.yaml"
3 |
--------------------------------------------------------------------------------
/config/services.yaml:
--------------------------------------------------------------------------------
1 | imports:
2 | - { resource: services/_main.yaml }
3 | - { resource: services/command.yaml }
4 | - { resource: services/context.yaml }
5 | - { resource: services/dashboard.yaml }
6 | - { resource: services/fixtures.yaml }
7 | - { resource: services/fixtures_factories.yaml }
8 | - { resource: services/form.yaml }
9 | - { resource: services/installer.yaml }
10 | - { resource: services/listener.yaml }
11 | - { resource: services/menu.yaml }
12 | - { resource: services/validator.yaml }
13 |
14 |
--------------------------------------------------------------------------------
/config/services/command.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | _defaults:
3 | autowire: true
4 | autoconfigure: true
5 |
6 | command_handlers:
7 | namespace: App\Command\
8 | resource: '../../src/Command/*'
9 |
10 | App\Command\Installer\InstallCommand:
11 | arguments:
12 | $cacheDir: '%kernel.cache_dir%'
13 |
14 | App\Command\Installer\InstallDatabaseCommand:
15 | arguments:
16 | $environment: '%kernel.environment%'
17 |
18 | App\Command\Installer\InstallAssetsCommand:
19 | arguments:
20 | $publicDir: '%kernel.project_dir%/public'
21 | $environment: '%kernel.environment%'
22 |
23 | App\Command\Installer\InstallSampleDataCommand:
24 | arguments:
25 | $publicDir: '%kernel.project_dir%/public'
26 | $environment: '%kernel.environment%'
27 |
--------------------------------------------------------------------------------
/config/services/context.yaml:
--------------------------------------------------------------------------------
1 | # Learn more about services, parameters and containers at
2 | # http://symfony.com/doc/current/book/service_container.html
3 | parameters:
4 | # parameter_name: value
5 |
6 | services:
7 | # service_name:
8 | # class: App\Directory\ClassName
9 | # arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
10 |
11 | app.context.customer:
12 | class: App\Context\CustomerContext
13 | arguments:
14 | - "@security.token_storage"
15 | - "@security.authorization_checker"
16 | public: true
17 |
--------------------------------------------------------------------------------
/config/services/dashboard.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | _defaults:
3 | autowire: true
4 | autoconfigure: true
5 |
6 | App\Dashboard\DashboardStatisticsProvider:
7 | arguments: [!tagged_iterator { tag: app.dashboard_statistic }]
8 |
--------------------------------------------------------------------------------
/config/services/fixtures.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | _defaults:
3 | autowire: true
4 | autoconfigure: true
5 |
6 | App\Fixture\AdminUserFixture:
7 | arguments:
8 | $exampleFactory: '@App\Fixture\Factory\AdminUserExampleFactory'
9 |
10 | App\Fixture\AppUserFixture:
11 | arguments:
12 | $exampleFactory: '@App\Fixture\Factory\AppUserExampleFactory'
13 |
14 | App\Fixture\ApiClientFixture:
15 | arguments:
16 | $exampleFactory: '@App\Fixture\Factory\ApiClientExampleFactory'
17 |
--------------------------------------------------------------------------------
/config/services/fixtures_factories.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | App\Fixture\Factory\:
3 | resource: '../../src/Fixture/Factory/*'
4 | autowire: true
5 | public: true
6 |
--------------------------------------------------------------------------------
/config/services/installer.yaml:
--------------------------------------------------------------------------------
1 | # Learn more about services, parameters and containers at
2 | # http://symfony.com/doc/current/book/service_container.html
3 | parameters:
4 | # parameter_name: value
5 |
6 | services:
7 | # service_name:
8 | # class: App\Directory\ClassName
9 | # arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
10 |
11 | App\Installer\Checker\CommandDirectoryChecker:
12 | public: true
13 | arguments:
14 | - "@filesystem"
15 |
16 | App\Installer\Provider\DatabaseSetupCommandsProvider:
17 | public: true
18 | arguments:
19 | - "@doctrine"
20 |
21 | App\Installer\Provider\DatabaseSetupCommandsProviderInterface: '@App\Installer\Provider\DatabaseSetupCommandsProvider'
22 |
--------------------------------------------------------------------------------
/config/services/listener.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | _defaults:
3 | autowire: true
4 |
5 | App\EventListener\CanonicalizerListener:
6 | tags:
7 | - { name: doctrine.event_listener, event: prePersist }
8 | - { name: doctrine.event_listener, event: preUpdate }
9 |
10 | App\EventListener\DefaultUsernameORMListener:
11 | tags:
12 | - { name: doctrine.event_listener, event: onFlush }
13 |
14 | App\EventListener\UserRegistrationListener:
15 | tags:
16 | - { name: kernel.event_listener, event: sylius.customer.post_register, method: handleUserVerification }
17 |
--------------------------------------------------------------------------------
/config/services/menu.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | _defaults:
3 | autowire: true
4 |
5 | App\Menu\AdminMenuBuilder:
6 | tags:
7 | - { name: knp_menu.menu_builder, method: createMenu, alias: app.admin.main } # The alias is what is used to retrieve the menu
8 |
9 | App\Menu\AccountMenuBuilder:
10 | tags:
11 | - { name: knp_menu.menu_builder, method: createMenu, alias: app.account } # The alias is what is used to retrieve the menu
12 |
--------------------------------------------------------------------------------
/config/services/validator.yaml:
--------------------------------------------------------------------------------
1 | # Learn more about services, parameters and containers at
2 | # http://symfony.com/doc/current/book/service_container.html
3 | parameters:
4 | # parameter_name: value
5 |
6 | services:
7 | # service_name:
8 | # class: App\Directory\ClassName
9 | # arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
10 |
11 | sylius.validator.customer_initializer:
12 | class: App\Validator\Initializer\CustomerInitializer
13 | arguments:
14 | - "@sylius.canonicalizer"
15 | tags:
16 | - { name: validator.initializer }
--------------------------------------------------------------------------------
/config/services_test/contexts.yaml:
--------------------------------------------------------------------------------
1 | imports:
2 | - { resource: contexts/cli.yaml }
3 | - { resource: contexts/hook.yaml }
4 | - { resource: contexts/setup.yaml }
5 | - { resource: contexts/transform.yaml }
6 | - { resource: contexts/ui.yaml }
7 |
--------------------------------------------------------------------------------
/config/services_test/contexts/cli.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | App\Tests\Behat\Context\Cli\:
3 | resource: '../../../tests/Behat/Context/Cli/*'
4 | autowire: true
5 | public: true
6 |
--------------------------------------------------------------------------------
/config/services_test/contexts/hook.yaml:
--------------------------------------------------------------------------------
1 | # Learn more about services, parameters and containers at
2 | # http://symfony.com/doc/current/book/service_container.html
3 | parameters:
4 | # parameter_name: value
5 |
6 | services:
7 | # service_name:
8 | # class: App\Directory\ClassName
9 | # arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
10 |
11 | App\Tests\Behat\Context\Hook\:
12 | resource: '../../../tests/Behat/Context/Hook/*'
13 | autowire: true
14 | public: true
15 |
--------------------------------------------------------------------------------
/config/services_test/contexts/setup.yaml:
--------------------------------------------------------------------------------
1 | # Learn more about services, parameters and containers at
2 | # http://symfony.com/doc/current/book/service_container.html
3 | parameters:
4 | # parameter_name: value
5 |
6 | services:
7 | # service_name:
8 | # class: App\Directory\ClassName
9 | # arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
10 |
11 | _defaults:
12 | public: true
13 | autowire: true
14 |
15 | App\Tests\Behat\Context\Setup\:
16 | resource: '../../../tests/Behat/Context/Setup/*'
17 | autowire: true
18 | public: true
19 |
20 | App\Tests\Behat\Context\Setup\AdminSecurityContext:
21 | arguments:
22 | $securityService: "@app.behat.admin_security"
23 |
24 | App\Tests\Behat\Context\Setup\AppSecurityContext:
25 | arguments:
26 | $securityService: "@app.behat.app_security"
27 |
--------------------------------------------------------------------------------
/config/services_test/contexts/transform.yaml:
--------------------------------------------------------------------------------
1 | # Learn more about services, parameters and containers at
2 | # http://symfony.com/doc/current/book/service_container.html
3 | parameters:
4 | # parameter_name: value
5 |
6 | services:
7 | # service_name:
8 | # class: App\Directory\ClassName
9 | # arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
10 |
11 | _defaults:
12 | public: true
13 | autowire: true
14 |
15 | App\Tests\Behat\Context\Transform\:
16 | resource: '../../../tests/Behat/Context/Transform/*'
17 | autowire: true
18 | public: true
19 |
--------------------------------------------------------------------------------
/config/services_test/contexts/ui.yaml:
--------------------------------------------------------------------------------
1 | # Learn more about services, parameters and containers at
2 | # http://symfony.com/doc/current/book/service_container.html
3 | parameters:
4 | # parameter_name: value
5 |
6 | services:
7 | # service_name:
8 | # class: App\Directory\ClassName
9 | # arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
10 |
11 | _defaults:
12 | public: true
13 | autowire: true
14 |
15 | App\Tests\Behat\Context\Ui\:
16 | resource: '../../../tests/Behat/Context/Ui/*'
17 | autowire: true
18 | public: true
19 |
--------------------------------------------------------------------------------
/config/services_test/elements.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | app.behat.element:
3 | class: FriendsOfBehat\PageObjectExtension\Element\Element
4 | abstract: true
5 | public: false
6 | arguments:
7 | $session: '@behat.mink.default_session'
8 | $minkParameters: '@behat.mink.parameters'
9 |
10 | App\Tests\Behat\Element\:
11 | resource: '../../tests/Behat/Element/*'
12 | parent: app.behat.element
13 | public: false
14 |
--------------------------------------------------------------------------------
/config/services_test/pages.yaml:
--------------------------------------------------------------------------------
1 | imports:
2 | - { resource: pages/backend.yaml }
3 | - { resource: pages/frontend.yaml }
4 |
5 | # Learn more about services, parameters and containers at
6 | # http://symfony.com/doc/current/book/service_container.html
7 | parameters:
8 | # parameter_name: value
9 |
10 | services:
11 | # service_name:
12 | # class: App\Directory\ClassName
13 | # arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
14 |
15 | app.behat.page:
16 | class: FriendsOfBehat\PageObjectExtension\Page\Page
17 | abstract: true
18 | public: false
19 | arguments:
20 | - "@behat.mink.default_session"
21 | - "@behat.mink.parameters"
22 |
23 | app.behat.symfony_page:
24 | class: FriendsOfBehat\PageObjectExtension\Page\SymfonyPage
25 | parent: app.behat.page
26 | abstract: true
27 | public: false
28 | arguments:
29 | - "@router"
--------------------------------------------------------------------------------
/config/services_test/pages/backend/administrator.yaml:
--------------------------------------------------------------------------------
1 | # Learn more about services, parameters and containers at
2 | # http://symfony.com/doc/current/book/service_container.html
3 | parameters:
4 | # parameter_name: value
5 |
6 | services:
7 | # service_name:
8 | # class: App\Directory\ClassName
9 | # arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
10 |
11 | App\Tests\Behat\Page\Backend\Administrator\CreatePage:
12 | parent: app.behat.page.backend.crud.create
13 | public: false
14 | arguments: ["sylius_backend_admin_user_create"]
15 |
16 | App\Tests\Behat\Page\Backend\Administrator\IndexPage:
17 | parent: app.behat.page.backend.crud.index
18 | public: false
19 | arguments: ["sylius_backend_admin_user_index"]
20 |
21 | App\Tests\Behat\Page\Backend\Administrator\UpdatePage:
22 | parent: app.behat.page.backend.crud.update
23 | public: false
24 | arguments: ["sylius_backend_admin_user_update"]
25 |
--------------------------------------------------------------------------------
/config/services_test/pages/backend/customer.yaml:
--------------------------------------------------------------------------------
1 | # Learn more about services, parameters and containers at
2 | # http://symfony.com/doc/current/book/service_container.html
3 | parameters:
4 | # parameter_name: value
5 |
6 | services:
7 | # service_name:
8 | # class: App\Directory\ClassName
9 | # arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
10 |
11 | App\Tests\Behat\Page\Backend\Customer\IndexPage:
12 | parent: app.behat.page.backend.crud.index
13 | public: false
14 | arguments: ["sylius_backend_customer_index"]
15 |
16 | App\Tests\Behat\Page\Backend\Customer\UpdatePage:
17 | parent: app.behat.page.backend.crud.update
18 | public: false
19 | arguments: ["sylius_backend_customer_update"]
20 |
--------------------------------------------------------------------------------
/config/services_test/pages/backend/dashboard.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | App\Tests\Behat\Page\Backend\DashboardPage:
3 | parent: app.behat.symfony_page
4 | public: false
5 | autowire: true
6 |
--------------------------------------------------------------------------------
/config/services_test/pages/frontend.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | App\Tests\Behat\Page\Frontend\:
3 | resource: '../../../tests/Behat/Page/Frontend/*'
4 | parent: app.behat.symfony_page
5 | public: false
6 |
--------------------------------------------------------------------------------
/config/suites.yaml:
--------------------------------------------------------------------------------
1 | imports:
2 | - suites/cli/installer.yaml
3 | - suites/cli/makefile.yaml
4 |
5 | - suites/ui/account/customer.yaml
6 | - suites/ui/account/login.yaml
7 | - suites/ui/account/registration.yaml
8 | - suites/ui/admin/dashboard.yaml
9 | - suites/ui/customer/managing_customers.yaml
10 | - suites/ui/user/managing_administrators.yaml
11 |
--------------------------------------------------------------------------------
/config/suites/cli/installer.yaml:
--------------------------------------------------------------------------------
1 | default:
2 | suites:
3 | cli_installer:
4 | contexts:
5 | - App\Tests\Behat\Context\Hook\DoctrineORMContext
6 |
7 | - App\Tests\Behat\Context\Cli\CommandContext
8 | - App\Tests\Behat\Context\Cli\InstallerContext
9 | filters:
10 | tags: "@installer && @cli"
11 |
--------------------------------------------------------------------------------
/config/suites/cli/makefile.yaml:
--------------------------------------------------------------------------------
1 | default:
2 | suites:
3 | cli_makefile:
4 | contexts:
5 | - App\Tests\Behat\Context\Cli\MakefileContext
6 | filters:
7 | tags: "@makefile && @cli"
8 |
--------------------------------------------------------------------------------
/config/suites/ui/account/customer.yaml:
--------------------------------------------------------------------------------
1 | # This file is part of the Sylius package.
2 | # (c) Paweł Jędrzejewski
3 |
4 | default:
5 | suites:
6 | ui_customer_account:
7 | contexts:
8 | - App\Tests\Behat\Context\Hook\DoctrineORMContext
9 |
10 | - App\Tests\Behat\Context\Transform\CustomerContext
11 | - App\Tests\Behat\Context\Transform\SharedStorageContext
12 |
13 | - App\Tests\Behat\Context\Setup\CustomerContext
14 | - App\Tests\Behat\Context\Setup\AppSecurityContext
15 | - App\Tests\Behat\Context\Setup\UserContext
16 |
17 | - App\Tests\Behat\Context\Ui\Frontend\AccountContext
18 | filters:
19 | tags: "@customer_account && @ui"
20 |
--------------------------------------------------------------------------------
/config/suites/ui/account/login.yaml:
--------------------------------------------------------------------------------
1 | default:
2 | suites:
3 | ui_customer_login:
4 | contexts:
5 | - App\Tests\Behat\Context\Hook\DoctrineORMContext
6 |
7 | - App\Tests\Behat\Context\Transform\UserContext
8 |
9 | - App\Tests\Behat\Context\Setup\UserContext
10 |
11 | - App\Tests\Behat\Context\Ui\EmailContext
12 | - App\Tests\Behat\Context\Ui\Frontend\LoginContext
13 | filters:
14 | tags: "@customer_login && @ui"
15 |
--------------------------------------------------------------------------------
/config/suites/ui/account/registration.yaml:
--------------------------------------------------------------------------------
1 | # This file is part of the Sylius package.
2 | # (c) Paweł Jędrzejewski
3 |
4 | default:
5 | suites:
6 | ui_customer_registration:
7 | contexts:
8 | - App\Tests\Behat\Context\Hook\DoctrineORMContext
9 | # - sylius.behat.context.hook.email_spool
10 |
11 | - App\Tests\Behat\Context\Transform\SharedStorageContext
12 | - App\Tests\Behat\Context\Transform\CustomerContext
13 |
14 | - App\Tests\Behat\Context\Setup\CustomerContext
15 | # - app.behat.context.setup.shop_security
16 | - App\Tests\Behat\Context\Setup\UserContext
17 |
18 | - App\Tests\Behat\Context\Ui\EmailContext
19 | - App\Tests\Behat\Context\Ui\Frontend\RegistrationContext
20 | filters:
21 | tags: "@customer_registration && @ui"
22 |
--------------------------------------------------------------------------------
/config/suites/ui/admin/dashboard.yaml:
--------------------------------------------------------------------------------
1 | default:
2 | suites:
3 | ui_dashboard:
4 | contexts:
5 | - App\Tests\Behat\Context\Hook\DoctrineORMContext
6 |
7 | - App\Tests\Behat\Context\Setup\CustomerContext
8 | - App\Tests\Behat\Context\Setup\AdminSecurityContext
9 |
10 | - App\Tests\Behat\Context\Ui\Backend\DashboardContext
11 | filters:
12 | tags: "@admin_dashboard && @ui"
13 |
--------------------------------------------------------------------------------
/config/suites/ui/customer/managing_customers.yaml:
--------------------------------------------------------------------------------
1 | default:
2 | suites:
3 | ui_managing_customers:
4 | contexts:
5 | - App\Tests\Behat\Context\Hook\DoctrineORMContext
6 |
7 | - App\Tests\Behat\Context\Setup\CustomerContext
8 | - App\Tests\Behat\Context\Setup\AdminSecurityContext
9 |
10 | - App\Tests\Behat\Context\Transform\CustomerContext
11 | - App\Tests\Behat\Context\Transform\SharedStorageContext
12 |
13 | - App\Tests\Behat\Context\Ui\Backend\ManagingCustomersContext
14 | - App\Tests\Behat\Context\Ui\Backend\NotificationContext
15 | filters:
16 | tags: "@managing_customers && @ui"
17 |
--------------------------------------------------------------------------------
/config/suites/ui/user/managing_administrators.yaml:
--------------------------------------------------------------------------------
1 | default:
2 | suites:
3 | ui_managing_administrators:
4 | contexts:
5 | - App\Tests\Behat\Context\Hook\DoctrineORMContext
6 |
7 | - App\Tests\Behat\Context\Setup\AdminSecurityContext
8 | - App\Tests\Behat\Context\Setup\AdminUserContext
9 |
10 | - App\Tests\Behat\Context\Transform\AdminUserContext
11 | - App\Tests\Behat\Context\Transform\SharedStorageContext
12 |
13 | - App\Tests\Behat\Context\Ui\Backend\ManagingAdministratorsContext
14 | - App\Tests\Behat\Context\Ui\Backend\NotificationContext
15 | filters:
16 | tags: "@managing_administrators && @ui"
17 |
--------------------------------------------------------------------------------
/docs/.gitignore:
--------------------------------------------------------------------------------
1 | build
2 | _exts/sensio/__init__.pyc
3 | *.pyc
4 |
--------------------------------------------------------------------------------
/docs/README.md:
--------------------------------------------------------------------------------
1 | Monofony Documentation
2 | ======================
3 |
4 | This directory contains documentation for Monofony.
5 |
6 | This documentation is inspired by [Sylius documentation](http://docs.sylius.org).
7 |
8 | Build
9 | -----
10 |
11 | In order to build the documentation:
12 | * [Install `pip`, Python package manager](https://pip.pypa.io/en/stable/installing/)
13 |
14 | * Download the documentation requirements:
15 |
16 | `$ pip install -r requirements.txt`
17 |
18 | This makes sure that the version of Sphinx you'll get is >=1.4.2!
19 |
20 | * Install [Sphinx](http://www.sphinx-doc.org/en/stable/)
21 |
22 | `$ pip install Sphinx`
23 |
24 | * In the `docs` directory run `$ sphinx-build -b html . build` and view the generated HTML files in the `build` directory.
25 |
26 | * If you want to update the complete structure use `-a` build option in order to rebuild the entire documentation
27 |
--------------------------------------------------------------------------------
/docs/_exts/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2010-2013 Fabien Potencier
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/docs/_exts/sensio/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/docs/_exts/sensio/__init__.py
--------------------------------------------------------------------------------
/docs/_exts/sensio/sphinx/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/docs/_exts/sensio/sphinx/__init__.py
--------------------------------------------------------------------------------
/docs/_exts/setup.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | from setuptools import setup, find_packages
4 |
5 | setup(
6 | name = 'sphinx-php',
7 | version = '1.0',
8 | author = 'Fabien Potencier',
9 | author_email = 'fabien@symfony.com',
10 | description = 'Sphinx Extensions for PHP and Symfony',
11 | license = 'MIT',
12 | packages = find_packages(),
13 | install_requires = ['Sphinx>=0.6'],
14 | )
15 |
--------------------------------------------------------------------------------
/docs/_images/doc_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/docs/_images/doc_logo.png
--------------------------------------------------------------------------------
/docs/_images/doctrine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/docs/_images/doctrine.png
--------------------------------------------------------------------------------
/docs/_images/github_banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/docs/_images/github_banner.png
--------------------------------------------------------------------------------
/docs/_images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/docs/_images/logo.png
--------------------------------------------------------------------------------
/docs/_images/symfonyfs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/docs/_images/symfonyfs.png
--------------------------------------------------------------------------------
/docs/_images/twig.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/monofony/SymfonyStarter/8e0cfc3924c669fabc1a016319bb86ae6774330c/docs/_images/twig.png
--------------------------------------------------------------------------------
/docs/_themes/sylius_rtd_theme/__init__.py:
--------------------------------------------------------------------------------
1 | """Sphinx ReadTheDocs theme.
2 |
3 | From https://github.com/ryan-roemer/sphinx-bootstrap-theme.
4 |
5 | """
6 | import os
7 |
8 | VERSION = (0, 1, 5)
9 |
10 | __version__ = ".".join(str(v) for v in VERSION)
11 | __version_full__ = __version__
12 |
13 |
14 | def get_html_theme_path():
15 | """Return list of HTML theme paths."""
16 | cur_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
17 | return cur_dir
18 |
--------------------------------------------------------------------------------
/docs/_themes/sylius_rtd_theme/breadcrumbs.html:
--------------------------------------------------------------------------------
1 |