Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Fixes autoloader issue (Class 'Swift_Mailer' not found in..) #416

Merged
merged 1 commit into from Jan 16, 2014

Conversation

NickStemerdink
Copy link

Currently the autoloader fails when unit test are executed with the following conditions:

  • Isolated processes
  • Preserve global state

This is because in the subprocess the constant is preserved, but the autoload register will be clean. So the autoloader would not be added to any subprocess.

… are executed in separate processes with "@preserveGlobalState" enabled
@sstok
Copy link
Contributor

sstok commented Jan 16, 2014

👍

@fabpot
Copy link
Member

fabpot commented Jan 16, 2014

Thanks @NickStemerdink.

fabpot added a commit that referenced this pull request Jan 16, 2014
…n..) (NickStemerdink)

This PR was merged into the 5.1-dev branch.

Discussion
----------

Fixes autoloader issue (Class 'Swift_Mailer' not found in..)

Currently the autoloader fails when unit test are executed with the following conditions:
- Isolated processes
- Preserve global state

This is because in the subprocess the constant is preserved, but the autoload register will be clean. So the autoloader would not be added to any subprocess.

Commits
-------

7758184 Fixes issue that prevents the autoloader from working when unit tests are executed in separate processes with "@preserveGlobalState" enabled
@fabpot fabpot merged commit 7758184 into swiftmailer:master Jan 16, 2014
@sroze
Copy link

sroze commented Mar 19, 2014

@fabpot Can it be rebased to a 5.0.4 version that will allow us to use it using the current SwiftmailerBundle ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants