• Slavi Pantaleev's avatar
    Avoid Swift Mailer initialization if possible · efd3757d
    Slavi Pantaleev authored
    The finish() filter flushing spool messages after each request
    caused Swift Mailer to be initialized and all services in this
    provider to be instantiated.
    
    Doing all this work takes time and is potentially unnecessary,
    since only a small number of all requests queue messages for sending.
    
    The time it takes to initialize swiftmailer and all services is between
    1 and 2ms on the 2 machines I tested on.
    This seems like a big price to pay for just including a provider
    that does nothing for most requests.
    efd3757d
Name
Last commit
Last update
bin Loading commit data...
doc Loading commit data...
src/Silex Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
composer.json Loading commit data...
composer.lock Loading commit data...
phpunit.xml.dist Loading commit data...