Commit d89cbcd9 authored by Fabien Potencier's avatar Fabien Potencier

added some comments about things that need to be removed just before the release of 1.0

parent 6768b3c8
......@@ -122,10 +122,12 @@ class DoctrineServiceProvider implements ServiceProviderInterface
public function boot(Application $app)
{
// BC: to be removed before 1.0
if (isset($app['db.dbal.class_path'])) {
throw new \RuntimeException('You have provided the db.dbal.class_path parameter. The autoloader has been removed from Silex. It is recommended that you use Composer to manage your dependencies and handle your autoloading. If you are already using Composer, you can remove the parameter. See http://getcomposer.org for more information.');
}
// BC: to be removed before 1.0
if (isset($app['db.common.class_path'])) {
throw new \RuntimeException('You have provided the db.common.class_path parameter. The autoloader has been removed from Silex. It is recommended that you use Composer to manage your dependencies and handle your autoloading. If you are already using Composer, you can remove the parameter. See http://getcomposer.org for more information.');
}
......
......@@ -55,6 +55,7 @@ class FormServiceProvider implements ServiceProviderInterface
public function boot(Application $app)
{
// BC: to be removed before 1.0
if (isset($app['form.class_path'])) {
throw new \RuntimeException('You have provided the form.class_path parameter. The autoloader has been removed from Silex. It is recommended that you use Composer to manage your dependencies and handle your autoloading. If you are already using Composer, you can remove the parameter. See http://getcomposer.org for more information.');
}
......
......@@ -60,6 +60,7 @@ class MonologServiceProvider implements ServiceProviderInterface
public function boot(Application $app)
{
// BC: to be removed before 1.0
if (isset($app['monolog.class_path'])) {
throw new \RuntimeException('You have provided the monolog.class_path parameter. The autoloader has been removed from Silex. It is recommended that you use Composer to manage your dependencies and handle your autoloading. If you are already using Composer, you can remove the parameter. See http://getcomposer.org for more information.');
}
......
......@@ -21,6 +21,7 @@ use Silex\ServiceProviderInterface;
*/
class SymfonyBridgesServiceProvider implements ServiceProviderInterface
{
// BC: this class needs to be removed before 1.0
public function __construct()
{
throw new \RuntimeException('You tried to create a SymfonyBridgesServiceProvider. However, it has been removed from Silex. Make sure that the Symfony bridge you want to use is autoloadable, and it will get loaded automatically. You should remove the creation of the SymfonyBridgesServiceProvider, as it is no longer needed.');
......
......@@ -58,6 +58,7 @@ class TranslationServiceProvider implements ServiceProviderInterface
public function boot(Application $app)
{
// BC: to be removed before 1.0
if (isset($app['translation.class_path'])) {
throw new \RuntimeException('You have provided the translation.class_path parameter. The autoloader has been removed from Silex. It is recommended that you use Composer to manage your dependencies and handle your autoloading. If you are already using Composer, you can remove the parameter. See http://getcomposer.org for more information.');
}
......
......@@ -73,6 +73,7 @@ class TwigServiceProvider implements ServiceProviderInterface
}
}
// BC: to be removed before 1.0
if (isset($app['twig.configure'])) {
throw new \RuntimeException('The twig.configure service has been removed. Read the changelog to learn how you can upgrade your code.');
}
......@@ -98,6 +99,7 @@ class TwigServiceProvider implements ServiceProviderInterface
public function boot(Application $app)
{
// BC: to be removed before 1.0
if (isset($app['twig.class_path'])) {
throw new \RuntimeException('You have provided the twig.class_path parameter. The autoloader has been removed from Silex. It is recommended that you use Composer to manage your dependencies and handle your autoloading. If you are already using Composer, you can remove the parameter. See http://getcomposer.org for more information.');
}
......
......@@ -57,6 +57,7 @@ class ValidatorServiceProvider implements ServiceProviderInterface
public function boot(Application $app)
{
// BC: to be removed before 1.0
if (isset($app['validator.class_path'])) {
throw new \RuntimeException('You have provided the validator.class_path parameter. The autoloader has been removed from Silex. It is recommended that you use Composer to manage your dependencies and handle your autoloading. If you are already using Composer, you can remove the parameter. See http://getcomposer.org for more information.');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment