Skip to content

Commit

Permalink
Merge pull request #116 from core23/patch/autoload
Browse files Browse the repository at this point in the history
Remove internal test classes from autoloader
  • Loading branch information
dbu committed Jun 29, 2016
2 parents b89d426 + a22e47a commit dedf007
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions UPGRADE-2.x.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
UPGRADE 2.x
===========

### Tests

All files under the ``Tests`` directory are now correctly handled as internal test classes.
You can't extend them anymore, because they are only loaded when running internal tests.
More information can be found in the [composer docs](https://getcomposer.org/doc/04-schema.md#autoload-dev).
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@
"stof/doctrine-extensions-bundle": "<1.1 || >=2.0"
},
"autoload": {
"psr-4": { "Sonata\\TranslationBundle\\": "" }
"psr-4": { "Sonata\\TranslationBundle\\": "" },
"exclude-from-classmap": [
"Tests/"
]
},
"autoload-dev": {
"psr-4": { "Sonata\\TranslationBundle\\Tests\\": "Tests/" }
},
"config": {
"sort-packages": true
},
Expand Down

0 comments on commit dedf007

Please sign in to comment.