Right, hte logger is connect to our internal classes, but not to the openapi library's context itself.
One thing to note here is that the new trait here isn't in Symfony 5.4, so anyone on an LTS release of Symfony (like me!) won't be able to upgraded to migrations 3.6
PHP Startup: Unable to load dynamic library 'pdo_snowflake' (tried: /opt/homebrew/lib/php/pecl/20220829/pdo_snowflake (dlopen(/opt/homebrew/lib/php/pecl/20220829/pdo_snowflake, 0x0009): tried: '/opt/homebrew/lib/php/pecl/20220829/pdo_snowflake' (no such file), '/usr/local/lib/pdo_snowflake' (no such file), '/usr/lib/pdo_snowflake' (no such file)), /opt/homebrew/lib/php/pecl/20220829/pdo_snowflake.so (dlopen(/opt/homebrew/lib/php/pecl/20220829/pdo_snowflake.so, 0x0009): symbol not found in flat namespace '_SF_BOOLEAN_FALSE')) in Unknown on line 0
In particular this bit:
(dlopen(/opt/homebrew/lib/php/pecl/20220829/pdo_snowflake.so, 0x0009): symbol not found in flat namespace '_SF_BOOLEAN_FALSE'))
This same error happens on PHP 8.1 and 8.2 on an M1 Mac, the driver seems to install and work fine on Linux, however.
Any guidance here would be appreciated.
Seems like the OpenAPI library's Context
has a logger: https://github.com/zircote/swagger-php/blob/a060ea2494ae6336eb4481f5c276d7c7ef038eda/src/Context.php#L66
that is uses a few places: https://github.com/zircote/swagger-php/blob/a060ea2494ae6336eb4481f5c276d7c7ef038eda/src/Analysers/AttributeAnnotationFactory.php#L47
This bundle should connect the logger from Symfony to the context. Name here: https://github.com/nelmio/NelmioApiDocBundle/blob/b4df34cdf78cf42c02afb85f9d10181bbf835da5/Describer/OpenApiPhpDescriber.php which already has the logger.
I can pick this up later, but it'd be a create "first issue" for anyone looking to contribute. I just had an error when rendering API docs that was silent and hard to debug becuase the default logger seemed to not work as expected.
Drop Symfony 5.4 Support
Upgrade to Localstack v1.3.1
Run CI on Github Actions
Goodbye, TravisCI
Don't Limit Services on Localstack
Doesn't seem like this is actually an options anymore?
Merge pull request #4 from AgencyPMG/ALLI-7638-php82
[ALLI-7638] Drop Symfony 4.4 Support & Test on PHP 8.2
Also move our CI stuff out of Travis and into Github Actions
Don't Limit Services on Localstack
Doesn't seem like this is actually an options anymore?
Drop PHP 7.4 Support
And fix some errors from upgrading the psr/log library.
Run the Integration Tests Against Localstack
So we can actually run tests in CI for this thing.
Tighten Up Property & Return Types
Run Tests on Github Actions
Merge pull request #4 from AgencyPMG/ALLI-7569-php82
[ALLI-7569] Drop PHP 7.4 Support & Prep for a 6.0 Release
Also run tests on github actions and use localstack for integration tests.
In general this was mostly about tightening up parameter, property, and return types.
Also move our CI stuff out of Travis and into Github Actions
Drop PHP 7.4 Support
Add Github Actions Workflows for CI
Goodbye, TravisCI
Add Callable Return Types to CreatingTacticianHandler
Merge pull request #9 from AgencyPMG/ALLI-7568-php82
[ALLI-7568] Drop PHP 7.4 Support
And move CI stuff to github actions -- also run our tests on PHP 8.1 and 8.2 to make sure it works there.
Drop PHP 7.4 Support
And Bump to pmg/queue 6.X
Fix the PHPUnit Config for v9.5
And remove a useless test bootstrap file
Tighten Up Types on Test Class Properties
And fix a single PHP 8.2 deprecation warning.
Remove the Deprecated array Type from PheanstalkDriver's Options
In favor of the options object. This was deprecated in 5.1
Only Accept an Options Object to Construct BuryFailureStrategy
Tighten Up Return Types on Tests
Tighten the Return Types on PheanstalkOptions
Tighten the Return Types on FailureStrategy
Tighten the Return Types on PheanstalkEnvelope
Fix the Examples for PHP 8.2
Add Github Workflows for Continous Integration
Goodbye, TravisCI
Merge pull request #12 from AgencyPMG/ALLI-7567-php82
[ALLI-7567] PHP 8.2 Support & Prep for v6.0
This drops PHP 7.4 support as well as removed deprecations from v5 and tightens a bunch of types (specifically return types).
Also moves CI from Travis to Github Actions.
Drop PHP 7.4 Support
And fix some deprecation warnings from PHP 8.2
Add Github Workflows for Tests
Goodbye, TravisCI
Merge pull request #3 from AgencyPMG/ALLI-7565-php82
[ALLI-7565] Drop PHP 7.4 Support