-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doctrine requirement is now optional
- Loading branch information
Showing
9 changed files
with
306 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
doctrine: | ||
dbal: | ||
driver: "%database_driver%" | ||
path: "%database_path%" | ||
charset: UTF8 | ||
orm: | ||
auto_generate_proxy_classes: true | ||
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware | ||
auto_mapping: true | ||
mappings: | ||
App: | ||
is_bundle: false | ||
type: attribute | ||
dir: '%kernel.project_dir%/src/Entity' | ||
prefix: 'App\Entity' | ||
alias: App | ||
BoardGameBlog: | ||
is_bundle: false | ||
type: attribute | ||
dir: '%kernel.project_dir%/src/BoardGameBlog/Domain' | ||
prefix: 'App\BoardGameBlog\Domain' | ||
Subscription: | ||
is_bundle: false | ||
type: attribute | ||
dir: '%kernel.project_dir%/src/Subscription/Entity' | ||
prefix: 'App\Subscription\Entity' |
2 changes: 2 additions & 0 deletions
2
tests/Application/config/packages/test_without_doctrine_orm/sylius_resource.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
sylius_resource: | ||
drivers: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
parameters: | ||
database_driver: pdo_sqlite | ||
database_path: "%kernel.project_dir%/config/db.sql" | ||
|
||
locale: en_US | ||
secret: "Three can keep a secret, if two of them are dead." | ||
|
||
services: | ||
# Gets rid of "[error] Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException" | ||
# errors in PHPUnit output when testing 404 errors. | ||
Psr\Log\NullLogger: ~ | ||
logger: '@Psr\Log\NullLogger' | ||
|
||
# Default configuration for services in *this* file | ||
_defaults: | ||
# Automatically injects dependencies in your services | ||
autowire: true | ||
|
||
# Automatically registers your services as commands, event subscribers, etc. | ||
autoconfigure: true | ||
|
||
# Allows optimizing the container by removing unused services; this also means | ||
# fetching services directly from the container via $container->get() won't work | ||
public: false | ||
|
||
# Controllers are imported separately to make sure services can be injected | ||
# as action arguments even if you don't extend any base controller class | ||
App\Controller\: | ||
resource: '../src/Controller' | ||
tags: ['controller.service_arguments'] | ||
|
||
test.translation_locale_provider: | ||
class: Sylius\Component\Resource\Translation\Provider\ImmutableTranslationLocaleProvider | ||
arguments: | ||
- ["pl_PL", "en_US", "de_DE"] | ||
- "en_US" | ||
|
||
test.custom_book_factory: | ||
class: App\Factory\CustomBookFactory | ||
public: true | ||
arguments: | ||
- "%app.model.book.class%" | ||
- "@test.translation_locale_provider" | ||
|
||
test.custom_book_repository: | ||
class: App\Repository\CustomBookRepository | ||
public: true | ||
arguments: | ||
- "@app.repository.book" | ||
|
||
app.form.type.book: | ||
class: App\Form\Type\BookType | ||
arguments: | ||
- '%app.model.book.class%' | ||
tags: ['form.type'] | ||
|
||
app.form.type.science_book: | ||
class: App\Form\Type\ScienceBookType | ||
arguments: | ||
- '%app.model.science_book.class%' | ||
- ['sylius'] | ||
tags: [ 'form.type' ] | ||
|
||
app.form.type.book_translation: | ||
class: App\Form\Type\BookTranslationType | ||
arguments: | ||
- '%app.model.book_translation.class%' | ||
tags: ['form.type'] | ||
|
||
App\Repository\ComicBookRepository: null | ||
App\Repository\LegacyBookRepository: null | ||
|
||
App\Shared\: | ||
resource: '../src/Shared' | ||
|
||
App\BoardGameBlog\: | ||
resource: '../src/BoardGameBlog' | ||
|
||
App\Subscription\: | ||
resource: '../src/Subscription' | ||
|
||
App\Subscription\Factory\SubscriptionFactory: | ||
decorates: 'app.factory.subscription' | ||
|
||
app.service.legacy_autowired_repository: | ||
class: App\Service\LegacyAutowiredRepositoryService | ||
autowire: true | ||
|
||
app.service.legacy_autowired_factory: | ||
class: App\Service\LegacyAutowiredFactoryService | ||
autowire: true | ||
|
||
app.service.legacy_autowired_translatable_factory: | ||
class: App\Service\LegacyAutowiredTranslatableFactoryService | ||
autowire: true |
Oops, something went wrong.