-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: autowired/compiled service container
- Loading branch information
1 parent
942efa6
commit 1bfcfe5
Showing
6 changed files
with
221 additions
and
451 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Configuration file for services (dependency injection). | ||
# | ||
# See https://symfony.com/doc/current/service_container.html | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: false | ||
public: false | ||
|
||
# Set up all classes in src/Command as console commands. | ||
Platformsh\Cli\Command\: | ||
resource: '../src/Command/*' | ||
tags: [console.command] | ||
|
||
# Set up all classes in src/Service as services automatically. | ||
Platformsh\Cli\Service\: | ||
resource: '../src/Service/*' | ||
|
||
# A few services are not inside the \Platformsh\Cli\Service namespace. | ||
Platformsh\Cli\Local\ApplicationFinder: {} | ||
Platformsh\Cli\Local\LocalBuild: {} | ||
Platformsh\Cli\Local\LocalProject: | ||
public: true | ||
Platformsh\Cli\SshCert\Certifier: {} | ||
|
||
# A couple of other services have to be public. | ||
Platformsh\Cli\Service\LegacyMigration: | ||
public: true | ||
Platformsh\Cli\Service\SelfUpdateChecker: | ||
public: true | ||
|
||
# Configure the cache service, which is created via a factory. | ||
Doctrine\Common\Cache\CacheProvider: | ||
public: true | ||
factory: 'Platformsh\Cli\Service\CacheFactory::createCacheProvider' | ||
arguments: ['@Platformsh\Cli\Service\Config'] | ||
|
||
# Configure synthetic services, which are created and set after the | ||
# container is compiled. | ||
Platformsh\Cli\Application: | ||
public: true | ||
synthetic: true | ||
Symfony\Component\Console\Output\OutputInterface: | ||
public: true | ||
synthetic: true | ||
Symfony\Component\Console\Input\InputInterface: | ||
public: true | ||
synthetic: true |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.