Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/.env
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ APP_SECRET=b59b88b0fff3b3312ff2753ed97f6d15
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS='^localhost|example\.com$'
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://schwarzbuch:schwarzbuch@db:3306/schwarzbuch
###< doctrine/doctrine-bundle ###

###> symfony/messenger ###
MESSENGER_TRANSPORT_DSN=amqp://guest:guest@messenger_transport:5672/%2f/messages
###< symfony/messenger ###
37 changes: 37 additions & 0 deletions app/.php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

$finder = PhpCsFixer\Finder::create()
->exclude([
'app',
'assets',
'bin',
'features',
'gulp',
'node_modules',
'var',
'vendor',
'web',
])
->in(__DIR__)
;

return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'yoda_style' => [
'equal' => null,
'identical' => null,
'less_and_greater' => null,
],
'concat_space' => ['spacing' => 'one'],
'declare_equal_normalize' => ['space' => 'single'],
'array_syntax' => ['syntax' => 'short'],
'phpdoc_align' => [
'align' => 'left',
'tags' => ['param', 'property', 'return', 'throws', 'type', 'var', 'method']
],
'phpdoc_to_comment' => false,
'no_superfluous_phpdoc_tags' => true,
])
->setFinder($finder)
;
1 change: 1 addition & 0 deletions app/.php_cs.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"php":"7.2.16","version":"2.14.2:v2.14.2#ff401e58261ffc5934a58f795b3f95b355e276cb","rules":{"binary_operator_spaces":true,"blank_line_after_opening_tag":true,"blank_line_before_statement":{"statements":["return"]},"braces":{"allow_single_line_closure":true},"cast_spaces":true,"class_attributes_separation":{"elements":["method"]},"class_definition":{"single_line":true},"concat_space":{"spacing":"one"},"declare_equal_normalize":{"space":"single"},"function_typehint_space":true,"include":true,"increment_style":true,"lowercase_cast":true,"lowercase_static_reference":true,"magic_constant_casing":true,"magic_method_casing":true,"method_argument_space":true,"native_function_casing":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_blank_lines_after_phpdoc":true,"no_empty_comment":true,"no_empty_phpdoc":true,"no_empty_statement":true,"no_extra_blank_lines":{"tokens":["curly_brace_block","extra","parenthesis_brace_block","square_brace_block","throw","use"]},"no_leading_import_slash":true,"no_leading_namespace_whitespace":true,"no_mixed_echo_print":{"use":"echo"},"no_multiline_whitespace_around_double_arrow":true,"no_short_bool_cast":true,"no_singleline_whitespace_before_semicolons":true,"no_spaces_around_offset":true,"no_trailing_comma_in_list_call":true,"no_trailing_comma_in_singleline_array":true,"no_unneeded_control_parentheses":true,"no_unneeded_curly_braces":true,"no_unneeded_final_method":true,"no_unused_imports":true,"no_whitespace_before_comma_in_array":true,"no_whitespace_in_blank_line":true,"normalize_index_brace":true,"object_operator_without_whitespace":true,"php_unit_fqcn_annotation":true,"phpdoc_align":{"align":"left","tags":["param","property","return","throws","type","var","method"]},"phpdoc_annotation_without_dot":true,"phpdoc_indent":true,"phpdoc_inline_tag":true,"phpdoc_no_access":true,"phpdoc_no_alias_tag":true,"phpdoc_no_empty_return":true,"phpdoc_no_package":true,"phpdoc_no_useless_inheritdoc":true,"phpdoc_return_self_reference":true,"phpdoc_scalar":true,"phpdoc_separation":true,"phpdoc_single_line_var_spacing":true,"phpdoc_summary":true,"phpdoc_trim":true,"phpdoc_types":true,"phpdoc_types_order":{"null_adjustment":"always_last","sort_algorithm":"none"},"phpdoc_var_without_name":true,"protected_to_private":true,"return_type_declaration":true,"semicolon_after_instruction":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_class_element_per_statement":true,"single_line_comment_style":{"comment_types":["hash"]},"single_quote":true,"space_after_semicolon":{"remove_in_empty_for_expressions":true},"standardize_increment":true,"standardize_not_equals":true,"ternary_operator_spaces":true,"trailing_comma_in_multiline_array":true,"trim_array_spaces":true,"unary_operator_spaces":true,"whitespace_after_comma_in_array":true,"yoda_style":{"equal":null,"identical":null,"less_and_greater":null},"blank_line_after_namespace":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_constants":true,"lowercase_keywords":true,"no_break_comment":true,"no_closing_tag":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":true,"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"no_superfluous_phpdoc_tags":true},"hashes":{"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Controller\/Test.php":233618974,"\/opt\/phpcsfixer_temp.tmp\/app\/public\/index.php":1814969249,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/BuchRepository.php":1854643475,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/Event\/BuchZumVerkaufFreigeben.php":3847220801,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/EventSubscriber\/BuchZumVerkaufFreigegeben.php":3269313775,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/EventSubscriber\/BuchZumVerkaufFreigegebenSubscriber.php":644501470,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/Repository\/BuchRepository.php":3394048387,"\/opt\/phpcsfixer_temp.tmp\/scratch.php":957640935,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/Entity\/VerleihVorgang.php":1276854695,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/SharedKernel\/DispatchEvents.php":3094119683,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/Event\/BuchGekauftSubscriber.php":848580053,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/SharedKernel\/AggregateRoot.php":1078851148,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/SharedKernel\/ProvideDomainEvents.php":4066752883,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/SharedKernel\/EventSourcedAggregateRoot.php":1906347409,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/Event\/BuchInventarisiert.php":3230930751,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/SharedKernel\/RaiseDomainEvents.php":1000926959,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/Entity\/Verleih.php":3360197489,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/Repository\/VerleihRepository.php":2845189942,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verkauf\/Event\/BuchZumVerkaufFreigegeben.php":871670,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Einkauf\/Events\/BuchGekauft.php":1813373560,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Einkauf\/Repository\/BuchRepository.php":4199691954,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/SharedKernel\/ApplyEvents.php":3109423293,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/SharedKernel\/IEventSourced.php":2278572534,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Einkauf\/Entity\/Buch.php":1048982291,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verkauf\/EventSubscriber\/BuchGekauftSubscriber.php":2837068292,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/Event\/BuchZumVerkaufFreigegeben.php":868461889,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verkauf\/Event\/BuchInInventarAufgenommen.php":663483199,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/DTO\/VerleiVorgang.php":3824061862,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/SharedKernel\/EventSourced.php":838132962,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verkauf\/Entity\/Buch.php":3819083441,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/Event\/BuchAusgeliehen.php":1271977857,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/Event\/BuchZurueckgegeben.php":2505542820,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/Entity\/Buch.php":3983336704,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verkauf\/EventSubscriber\/BuchZumVerkaufFreigegebenSubscriber.php":4144845352,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Migrations\/Version20190517160642.php":323840289,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/EventSubscriber\/BuchGekauftSubscriber.php":2907855811,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verkauf\/MessageHandler\/BuchGekauftHandler.php":2704414811,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verkauf\/MessageHandler\/BuchZurueckgegebenHandler.php":1428525329,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verkauf\/MessageHandler\/BuchZumVerkaufFreigegebenHandler.php":702019848,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/SharedKernel\/DispatchDomainEvents.php":1711258709,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/MessageHandler\/BuchZurueckgegebenHandler.php":3953375081,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Verleih\/EventSubscriber\/BuchZurueckgegbenSubscriber.php":523900007,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Einkauf\/Event\/BuchGekauft.php":990703619,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/SharedKernel\/DomainEvent.php":2053611214,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Middleware\/MyFirstMiddleware.php":2271460629,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/DTO\/Student.php":2747975779,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/DTO\/Buch.php":1732219971,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/DTO\/VerleihVorgang.php":1847944138,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/SharedKernel\/EventStreamRepository.php":567749579,"\/opt\/phpcsfixer_temp.tmp\/app\/src\/Controller\/TestController.php":4150913053}}
7 changes: 7 additions & 0 deletions app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-json": "*",
"nesbot/carbon": "^2.18",
"symfony/amqp-pack": "^1.0",
"symfony/console": "4.2.*",
"symfony/dotenv": "4.2.*",
"symfony/event-dispatcher": "4.2.*",
"symfony/flex": "^1.1",
"symfony/framework-bundle": "4.2.*",
"symfony/messenger": "4.2.*",
"symfony/orm-pack": "^1.0",
"symfony/twig-bundle": "4.2.*",
"symfony/yaml": "4.2.*"
},
"config": {
Expand Down
Loading