Justin
Justin
Hi @SvenRtbg, I appreciate your reply. I'll try to respond to everything I can here. First, [here](https://github.com/moderntribe/tribe-libs/tree/feature/php-di-extension/tests/integration/Tribe/Libs/Support/Contextual) are the classes being used in the tests. > One could easily also...
> Could you detail why this doesn't solve your problem: > > ``` > return [ > > ColorManager::class => autowire()->constructorParameter('color', factory(function () { > return new Red(); > })),...
@SvenRtbg keep i mind with Laravel example you can do all of the logic I've detailed here, including utilizing the already defined or autowired definitions, looping back into the container,...
> Just a thought...do we _need_ to require a SMTP plugin by default in SquareOne? Probably not, nope.
@nickpelton thank you so much for this! Would it be too much to ask to rerun the public folder test after a system prune? I know it's a pain because...
> AFAIKT, after testing no real performance increase cry. I also think this change is a bit too heavy handed with the restructure and would make it even more work...
@nickpelton oh also, maybe some `so composer clearcache` and `so composer install` tests, given those will actually do some syncing from the container to the host?
Now that's very interesting about the prune making things significantly faster all around. However, the mean is 9.6% faster and the max is 23% faster. That's not insignificant. I don't...
> Why add another define we have to track? Why not key off the WP_ENVIROMENT_TYPE instead? You noted we shoudn't activate some plugins in development, and WP_ENVIROMENT_TYPE can provide that,...
I should add, if the host already has `WP_DEBUG` set to true, which is often the case on a development environment, the plugin would not be force deactivated with the...