@@ -122,10 +122,12 @@ class DoctrineServiceProvider implements ServiceProviderInterface
publicfunctionboot(Application$app)
{
// BC: to be removed before 1.0
if(isset($app['db.dbal.class_path'])){
thrownew\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'])){
thrownew\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
publicfunctionboot(Application$app)
{
// BC: to be removed before 1.0
if(isset($app['form.class_path'])){
thrownew\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
publicfunctionboot(Application$app)
{
// BC: to be removed before 1.0
if(isset($app['monolog.class_path'])){
thrownew\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.');
thrownew\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
publicfunctionboot(Application$app)
{
// BC: to be removed before 1.0
if(isset($app['translation.class_path'])){
thrownew\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'])){
thrownew\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
publicfunctionboot(Application$app)
{
// BC: to be removed before 1.0
if(isset($app['twig.class_path'])){
thrownew\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
publicfunctionboot(Application$app)
{
// BC: to be removed before 1.0
if(isset($app['validator.class_path'])){
thrownew\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.');