Skip to content

added the new Composer exclude-from-classmap option #16397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 30, 2015
Merged
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
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@
"src/Symfony/Component/HttpFoundation/Resources/stubs",
"src/Symfony/Component/Intl/Resources/stubs"
],
"files": [ "src/Symfony/Component/Intl/Resources/stubs/functions.php" ]
"files": [ "src/Symfony/Component/Intl/Resources/stubs/functions.php" ],
"exclude-from-classmap": [
"**/Tests/"
]
},
"minimum-stability": "dev",
"extra": {
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Bridge/Doctrine/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
"doctrine/orm": ""
},
"autoload": {
"psr-0": { "Symfony\\Bridge\\Doctrine\\": "" }
"psr-0": { "Symfony\\Bridge\\Doctrine\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Bridge/Doctrine",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Bridge/Monolog/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"monolog/monolog": "~1.3"
},
"autoload": {
"psr-0": { "Symfony\\Bridge\\Monolog\\": "" }
"psr-0": { "Symfony\\Bridge\\Monolog\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Bridge/Monolog",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Bridge/Propel1/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
"symfony/stopwatch": "~2.2"
},
"autoload": {
"psr-0": { "Symfony\\Bridge\\Propel1\\": "" }
"psr-0": { "Symfony\\Bridge\\Propel1\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Bridge/Propel1",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Bridge/ProxyManager/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
"autoload": {
"psr-0": {
"Symfony\\Bridge\\ProxyManager\\": ""
}
},
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Bridge/ProxyManager",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Bridge/Swiftmailer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
"symfony/http-kernel": ""
},
"autoload": {
"psr-0": { "Symfony\\Bridge\\Swiftmailer\\": "" }
"psr-0": { "Symfony\\Bridge\\Swiftmailer\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Bridge/Swiftmailer",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Bridge/Twig/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
"symfony/security": ""
},
"autoload": {
"psr-0": { "Symfony\\Bridge\\Twig\\": "" }
"psr-0": { "Symfony\\Bridge\\Twig\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Bridge/Twig",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Bundle/FrameworkBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
"symfony/serializer": "For using the serializer service"
},
"autoload": {
"psr-0": { "Symfony\\Bundle\\FrameworkBundle\\": "" }
"psr-0": { "Symfony\\Bundle\\FrameworkBundle\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Bundle/FrameworkBundle",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Bundle/SecurityBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
"twig/twig": "~1.20|~2.0"
},
"autoload": {
"psr-0": { "Symfony\\Bundle\\SecurityBundle\\": "" }
"psr-0": { "Symfony\\Bundle\\SecurityBundle\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Bundle/SecurityBundle",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Bundle/TwigBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
"symfony/framework-bundle": "~2.1"
},
"autoload": {
"psr-0": { "Symfony\\Bundle\\TwigBundle\\": "" }
"psr-0": { "Symfony\\Bundle\\TwigBundle\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Bundle/TwigBundle",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Bundle/WebProfilerBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
"symfony/stopwatch": "~2.2"
},
"autoload": {
"psr-0": { "Symfony\\Bundle\\WebProfilerBundle\\": "" }
"psr-0": { "Symfony\\Bundle\\WebProfilerBundle\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Bundle/WebProfilerBundle",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/BrowserKit/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
"symfony/process": ""
},
"autoload": {
"psr-0": { "Symfony\\Component\\BrowserKit\\": "" }
"psr-0": { "Symfony\\Component\\BrowserKit\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/BrowserKit",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/ClassLoader/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
"symfony/finder": "~2.0,>=2.0.5"
},
"autoload": {
"psr-0": { "Symfony\\Component\\ClassLoader\\": "" }
"psr-0": { "Symfony\\Component\\ClassLoader\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/ClassLoader",
"extra": {
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Config/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"symfony/filesystem": "~2.3"
},
"autoload": {
"psr-0": { "Symfony\\Component\\Config\\": "" }
"psr-0": { "Symfony\\Component\\Config\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/Config",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Console/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"symfony/event-dispatcher": ""
},
"autoload": {
"psr-0": { "Symfony\\Component\\Console\\": "" }
"psr-0": { "Symfony\\Component\\Console\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/Console",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/CssSelector/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
"php": ">=5.3.3"
},
"autoload": {
"psr-0": { "Symfony\\Component\\CssSelector\\": "" }
"psr-0": { "Symfony\\Component\\CssSelector\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/CssSelector",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Debug/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
"symfony/class-loader": ""
},
"autoload": {
"psr-0": { "Symfony\\Component\\Debug\\": "" }
"psr-0": { "Symfony\\Component\\Debug\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/Debug",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/DependencyInjection/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
"symfony/proxy-manager-bridge": "Generate service proxies to lazy load them"
},
"autoload": {
"psr-0": { "Symfony\\Component\\DependencyInjection\\": "" }
"psr-0": { "Symfony\\Component\\DependencyInjection\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/DependencyInjection",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/DomCrawler/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"symfony/css-selector": ""
},
"autoload": {
"psr-0": { "Symfony\\Component\\DomCrawler\\": "" }
"psr-0": { "Symfony\\Component\\DomCrawler\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/DomCrawler",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/EventDispatcher/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
"symfony/http-kernel": ""
},
"autoload": {
"psr-0": { "Symfony\\Component\\EventDispatcher\\": "" }
"psr-0": { "Symfony\\Component\\EventDispatcher\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/EventDispatcher",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Filesystem/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"php": ">=5.3.3"
},
"autoload": {
"psr-0": { "Symfony\\Component\\Filesystem\\": "" }
"psr-0": { "Symfony\\Component\\Filesystem\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/Filesystem",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Finder/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"php": ">=5.3.3"
},
"autoload": {
"psr-0": { "Symfony\\Component\\Finder\\": "" }
"psr-0": { "Symfony\\Component\\Finder\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/Finder",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Form/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
"symfony/http-foundation": ""
},
"autoload": {
"psr-0": { "Symfony\\Component\\Form\\": "" }
"psr-0": { "Symfony\\Component\\Form\\": "" },
"exclude-from-classmap": [
"/Tests/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is also a Test folder in the form component

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This folder, just like the Test/ folder in the FrameworkBundle, provides test helpers to use in your own unit/functional tests

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't Testbe included in autoload-dev only? As you said there are only meant to be used for tests, so you don't need them in production mode.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

autoload-dev only affects the root project. So this would only work when you are running tests for Symfony itself.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for your explanation @wouterj

]
},
"target-dir": "Symfony/Component/Form",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/HttpFoundation/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
},
"autoload": {
"psr-0": { "Symfony\\Component\\HttpFoundation\\": "" },
"classmap": [ "Symfony/Component/HttpFoundation/Resources/stubs" ]
"classmap": [ "Symfony/Component/HttpFoundation/Resources/stubs" ],
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/HttpFoundation",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/HttpKernel/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
"symfony/finder": ""
},
"autoload": {
"psr-0": { "Symfony\\Component\\HttpKernel\\": "" }
"psr-0": { "Symfony\\Component\\HttpKernel\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/HttpKernel",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Intl/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
"autoload": {
"psr-0": { "Symfony\\Component\\Intl\\": "" },
"classmap": [ "Symfony/Component/Intl/Resources/stubs" ],
"files": [ "Symfony/Component/Intl/Resources/stubs/functions.php" ]
"files": [ "Symfony/Component/Intl/Resources/stubs/functions.php" ],
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/Intl",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Locale/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"symfony/intl": "~2.3"
},
"autoload": {
"psr-0": { "Symfony\\Component\\Locale\\": "" }
"psr-0": { "Symfony\\Component\\Locale\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/Locale",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/OptionsResolver/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"php": ">=5.3.3"
},
"autoload": {
"psr-0": { "Symfony\\Component\\OptionsResolver\\": "" }
"psr-0": { "Symfony\\Component\\OptionsResolver\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/OptionsResolver",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Process/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"php": ">=5.3.3"
},
"autoload": {
"psr-0": { "Symfony\\Component\\Process\\": "" }
"psr-0": { "Symfony\\Component\\Process\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/Process",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/PropertyAccess/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"php": ">=5.3.3"
},
"autoload": {
"psr-0": { "Symfony\\Component\\PropertyAccess\\": "" }
"psr-0": { "Symfony\\Component\\PropertyAccess\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/PropertyAccess",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Routing/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
"doctrine/common": ""
},
"autoload": {
"psr-0": { "Symfony\\Component\\Routing\\": "" }
"psr-0": { "Symfony\\Component\\Routing\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/Routing",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Security/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
"paragonie/random_compat": ""
},
"autoload": {
"psr-0": { "Symfony\\Component\\Security\\": "" }
"psr-0": { "Symfony\\Component\\Security\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/Security",
"minimum-stability": "dev",
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Component/Serializer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"php": ">=5.3.3"
},
"autoload": {
"psr-0": { "Symfony\\Component\\Serializer\\": "" }
"psr-0": { "Symfony\\Component\\Serializer\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
},
"target-dir": "Symfony/Component/Serializer",
"minimum-stability": "dev",
Expand Down
Loading