Skip to content

Commit 0ca4466

Browse files
authored
Release v1.14.1
2 parents d10b9d2 + a61ffdb commit 0ca4466

10 files changed

+26
-20
lines changed

BugsnagBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ class BugsnagBundle extends Bundle
1111
*
1212
* @return string
1313
*/
14-
const VERSION = '1.14.0';
14+
const VERSION = '1.14.1';
1515
}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
## 1.14.1 (2024-01-23)
5+
6+
* Fix "Configuration class not found" error when using Composer's `--classmap-authoritative` option
7+
[#174](https://github.com/bugsnag/bugsnag-symfony/pull/174)
8+
49
## 1.14.0 (2024-01-16)
510

611
* Add support for Symfony 7

DependencyInjection/Configuration.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

DependencyInjection/configuration-with-return-type.php renamed to DependencyInjection/ConfigurationWithReturnType.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
* This file declares a Configuration class with a return type on the
55
* 'getConfigTreeBuilder' for compatibility with Symfony 7+
66
*
7-
* This is required to be in a separate file with Configuration.php requiring it
8-
* at runtime so that we can maintain compatibility with PHP 5, where return
9-
* types are not supported
7+
* This is required to be in a separate file with
8+
* 'create-configuration-class-alias.php' requiring it at runtime so that we can
9+
* maintain compatibility with PHP 5 where return types are not supported
1010
*/
1111

1212
namespace Bugsnag\BugsnagBundle\DependencyInjection;
1313

1414
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
1515
use Symfony\Component\Config\Definition\ConfigurationInterface;
1616

17-
class Configuration extends BaseConfiguration implements ConfigurationInterface
17+
class ConfigurationWithReturnType extends BaseConfiguration implements ConfigurationInterface
1818
{
1919
/**
2020
* Get the configuration tree builder.

DependencyInjection/configuration-without-return-type.php renamed to DependencyInjection/ConfigurationWithoutReturnType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
* not supported
77
*
88
* Symfony 7 requires a return type on this method, which is implemented in
9-
* 'configuration-with-return-type.php' and required in 'Configuration.php' when
10-
* running on PHP 7+
9+
* 'ConfigurationWithReturnType.php' and is used by
10+
* 'create-configuration-class-alias.php' when running on PHP 7+
1111
*/
1212

1313
namespace Bugsnag\BugsnagBundle\DependencyInjection;
1414

1515
use Symfony\Component\Config\Definition\ConfigurationInterface;
1616

17-
class Configuration extends BaseConfiguration implements ConfigurationInterface
17+
class ConfigurationWithoutReturnType extends BaseConfiguration implements ConfigurationInterface
1818
{
1919
}

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"autoload": {
3030
"psr-4": {
3131
"Bugsnag\\BugsnagBundle\\": ""
32-
}
32+
},
33+
"files": ["create-configuration-class-alias.php"]
3334
},
3435
"extra": {
3536
"branch-alias": {

create-configuration-class-alias.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
$class = PHP_MAJOR_VERSION >= 7
4+
? \Bugsnag\BugsnagBundle\DependencyInjection\ConfigurationWithReturnType::class
5+
: \Bugsnag\BugsnagBundle\DependencyInjection\ConfigurationWithoutReturnType::class;
6+
7+
class_alias($class, \Bugsnag\BugsnagBundle\DependencyInjection\Configuration::class);

features/fixtures/symfony-7/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
1616

1717
###> symfony/framework-bundle ###
18-
APP_ENV=dev
18+
APP_ENV=prod
1919
APP_SECRET=86da11dd44c7d9586497e12ee145efb9
2020
###< symfony/framework-bundle ###
2121

features/fixtures/symfony-7/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ COPY --from=composer:2.2 /usr/bin/composer /usr/local/bin/composer
3030

3131
RUN sh setup-github-token.sh
3232
RUN php setup-bugsnag-config.php
33-
RUN composer install
33+
RUN composer install --no-dev --classmap-authoritative
34+
RUN php bin/console cache:clear
3435

3536
CMD ["php", "-S", "0.0.0.0:8000", "-t", "public"]

features/ooms.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Scenario: OOM from a single large allocation
1919

2020
@not_symfony_2
2121
@not_symfony_4
22+
@not_symfony_7
2223
Scenario: OOM from many small allocations
2324
# Symfony does a lot more stuff in debug mode, which can cause it to run OOM
2425
# again when trying to handle the original OOM

0 commit comments

Comments
 (0)