Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
release: v3.1.0 premium smart core engines and 14 new accessibility rules
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
namespace YakNet\AccessibilityConsole\Core\Container;
|
||||
|
||||
use DI\ContainerBuilder;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use YakNet\AccessibilityConsole\Core\Config;
|
||||
use YakNet\AccessibilityConsole\Core\Analyser;
|
||||
use YakNet\AccessibilityConsole\Core\Scanner;
|
||||
use YakNet\AccessibilityConsole\Console\Command\ScanCommand;
|
||||
use YakNet\AccessibilityConsole\Console\Command\FixCommand;
|
||||
use YakNet\AccessibilityConsole\Console\Command\InitCommand;
|
||||
use YakNet\AccessibilityConsole\Console\Command\RulesCommand;
|
||||
|
||||
class ContainerFactory
|
||||
{
|
||||
/**
|
||||
* Create and configure the PHP-DI container.
|
||||
*
|
||||
* @return ContainerInterface
|
||||
*/
|
||||
public static function create(): ContainerInterface
|
||||
{
|
||||
$builder = new ContainerBuilder();
|
||||
|
||||
$builder->addDefinitions([
|
||||
Config::class => function () {
|
||||
$configPath = getcwd() . '/a11y.yaml';
|
||||
return Config::fromYaml($configPath);
|
||||
},
|
||||
Scanner::class => function () {
|
||||
return new Scanner();
|
||||
},
|
||||
Analyser::class => function (ContainerInterface $c) {
|
||||
$config = $c->get(Config::class);
|
||||
$scanner = $c->get(Scanner::class);
|
||||
return new Analyser(
|
||||
$config instanceof Config ? $config : null,
|
||||
$scanner instanceof Scanner ? $scanner : null
|
||||
);
|
||||
},
|
||||
ScanCommand::class => function () {
|
||||
return new ScanCommand();
|
||||
},
|
||||
FixCommand::class => function () {
|
||||
return new FixCommand();
|
||||
},
|
||||
InitCommand::class => function () {
|
||||
return new InitCommand();
|
||||
},
|
||||
RulesCommand::class => function () {
|
||||
return new RulesCommand();
|
||||
},
|
||||
]);
|
||||
|
||||
return $builder->build();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user