-
Notifications
You must be signed in to change notification settings - Fork 223
Allow using project composer Classloader and some more optimizations #198
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
Conversation
mcg-web
commented
Sep 21, 2017
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | yes |
Tests pass? | yes |
Documented? | yes |
Fixed tickets | #189 |
License | MIT |
8bf7f88
to
83c55fd
Compare
also fix default resolver when using php types
83c55fd
to
7d03b9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgive my ignorance on the bundle, but when is it necessary to use the this feature? Only when creating custom types or so?
if (null === $mapClassLoader) { | ||
$mapClassLoader = new ClassLoader(); | ||
$mapClassLoader->setClassMapAuthoritative(true); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to enter this else statement? $mapClassLoader
seems to be always null to me or am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it is null on init because $mapClassLoader is declare as static so after it init it always has the same instance of ClassLoader.
env: SYMFONY_VERSION=3.2.* | ||
- php: 7.1 | ||
env: SYMFONY_VERSION=3.3.* SCRUTINIZER=true | ||
env: SYMFONY_VERSION=3.3.* TEST_COVERAGE=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool 👍
{ | ||
$config = $container->getParameter('overblog_graphql_types.config'); | ||
$generatedClasses = $container->get('overblog_graphql.cache_compiler')->compile($this->processConfig($config)); | ||
$generatedClasses = $container->get('overblog_graphql.cache_compiler')->compile( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a good idea to extract $container->get('overblog_graphql.cache_compiler')
and check its type just for safety and the IDE will also type hint it nicely
1ad4348
to
4d1fb07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM