You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application, I need a service with 2 différents behaviors according to the current environnement. Here is the interface of my service.
interface FileSystemManagerInterface
{
public function getFilesystemForContext($context = null);
public function createPicture($context);
public function configurePicture(Picture $picture, $context);
}
And I have 2 implementations : first)
@Service("CENSORED.filesystem.manager", environments={"prod"})
class AmazonS3FileSystemManager implements FileSystemManagerInterface
second)
@Service("CENSORED.filesystem.manager", environments={"dev"})
class LocalFileSystemManager implements FileSystemManagerInterface
Unfortunately, in the dev environment I get the AmazonS3FileSystemManager. I think I'm missing something :o
The text was updated successfully, but these errors were encountered:
Hi there,
In my application, I need a service with 2 différents behaviors according to the current environnement. Here is the interface of my service.
And I have 2 implementations : first)
second)
Unfortunately, in the dev environment I get the AmazonS3FileSystemManager. I think I'm missing something :o
The text was updated successfully, but these errors were encountered: