Skip to content

Commit

Permalink
Merge 7ca0bdb into 878a18c
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Mar 12, 2020
2 parents 878a18c + 7ca0bdb commit 4ab800c
Show file tree
Hide file tree
Showing 44 changed files with 1,395 additions and 685 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ vendor/
sphpdox.phar
_Output/
Documentation/.doctrees
var/
1 change: 1 addition & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ if (PHP_SAPI !== 'cli') {
// Define in which folders to search and which folders to exclude
// Exclude some directories that are excluded by Git anyways to speed up the sniffing
$finder = PhpCsFixer\Finder::create()
->exclude('var')
->exclude('.github')
->exclude('Configuration')
->exclude('Documentation')
Expand Down
24 changes: 24 additions & 0 deletions Resources/services.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
services:
_defaults:
autowire: true
autoconfigure: true
public: true
TYPO3\Surf\:
resource: '../src/*'
exclude: '../src/{Cli,Application,Exception,Domain/Model,DeprecationMessageFactory.php,Exception.php,functions.php}'
Symfony\Component\Console\Output\OutputInterface:
factory: ['@TYPO3\Surf\Cli\Symfony\ConsoleOutputFactory', 'createOutput']
Psr\Log\LoggerInterface:
factory: ['@TYPO3\Surf\Cli\Symfony\Logger\LoggerFactory', 'createLogger']
TYPO3\Surf\Integration\Factory:
arguments: ['@TYPO3\Surf\Domain\Filesystem\FilesystemInterface', '@Psr\Log\LoggerInterface']
TYPO3\Surf\Integration\FactoryInterface: '@TYPO3\Surf\Integration\Factory'
GuzzleHttp\Client: ~
GuzzleHttp\ClientInterface: '@GuzzleHttp\Client'
TYPO3\Surf\Cli\Symfony\Logger\ConsoleHandler: ~
TYPO3\Surf\Cli\Symfony\ConsoleApplication: ~
Symfony\Component\Console\Application: ~
TYPO3\Surf\Domain\Model\SimpleWorkflow:
shared: false
TYPO3\Surf\Cli\Symfony\ConsoleOutputFactory: ~
TYPO3\Surf\Cli\Symfony\Logger\LoggerFactory: ~
9 changes: 6 additions & 3 deletions bin/surf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@

requireAutoloader();

$app = new \TYPO3\Surf\Cli\Symfony\ConsoleApplication('TYPO3 Surf', '3.0.0-alpha');
$app->setFactory(new \TYPO3\Surf\Integration\Factory());
$app->run();
$kernel = new \TYPO3\Surf\Cli\Symfony\ConsoleKernel('prod', false);
$kernel->boot();
$container = $kernel->getContainer();

$application = $container->get(\TYPO3\Surf\Cli\Symfony\ConsoleApplication::class);
$application->run();

function requireAutoloader()
{
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"symfony/process": "^4.0",
"symfony/options-resolver": "^4.0",
"guzzlehttp/guzzle": "^6.0",
"webmozart/assert": "^1.4"
"webmozart/assert": "^1.4",
"symfony/dependency-injection": "^5.0",
"symfony/config": "^5.0",
"symfony/yaml": "^5.0",
"symfony/http-kernel": "^4.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0",
Expand Down

0 comments on commit 4ab800c

Please sign in to comment.