File tree 5 files changed +25
-24
lines changed
5 files changed +25
-24
lines changed Original file line number Diff line number Diff line change 9
9
"symfony/console" : " ^6.1" ,
10
10
"symfony/http-kernel" : " ^6.1" ,
11
11
"symfony/dependency-injection" : " ^6.1" ,
12
- "symfony/config" : " ^6.1"
12
+ "symfony/config" : " ^6.1" ,
13
+ "symfony/yaml" : " ^6.1"
13
14
},
14
15
"license" : " MIT" ,
15
16
"autoload" : {
31
32
32
33
}
33
34
],
34
- "minimum-stability" : " dev"
35
+ "minimum-stability" : " dev" ,
36
+ "scripts" : {
37
+ "md" : [
38
+ " phpmd src,tests ansi phpmd.xml.dist"
39
+ ],
40
+ "cpd" : [
41
+ " phpcpd src"
42
+ ],
43
+ "test" : [
44
+ " phpunit"
45
+ ]
46
+ }
35
47
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Devgine \Demo \DependencyInjection ;
4
4
5
+ use Symfony \Component \Config \FileLocator ;
5
6
use Symfony \Component \Console \Application ;
6
7
use Symfony \Component \DependencyInjection \ContainerBuilder ;
7
8
use Symfony \Component \DependencyInjection \Extension \Extension ;
8
- use Symfony \Component \DependencyInjection \Loader \XmlFileLoader ;
9
- use Symfony \Component \Config \FileLocator ;
9
+ use Symfony \Component \DependencyInjection \Loader \YamlFileLoader ;
10
10
11
11
class DevgineDemoExtension extends Extension
12
12
{
13
+ /** @SuppressWarnings(PHPMD.UnusedFormalParameter) */
13
14
public function load (array $ configs , ContainerBuilder $ container )
14
15
{
15
- $ loader = new XmlFileLoader ($ container , new FileLocator (__DIR__ . '/../Resources/config ' ));
16
+ $ loader = new YamlFileLoader ($ container , new FileLocator (__DIR__ . '/../Resources/config ' ));
16
17
17
18
if (class_exists (Application::class)) {
18
- $ loader ->load ('console.xml ' );
19
+ $ loader ->load ('console.yaml ' );
19
20
}
20
21
}
21
22
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Devgine \Demo ;
4
4
5
- use Symfony \Component \DependencyInjection \ContainerBuilder ;
6
- use Symfony \Component \HttpKernel \Bundle \AbstractBundle ;
5
+ use Symfony \Component \HttpKernel \Bundle \Bundle ;
7
6
8
- class DevgineDemoBundle extends AbstractBundle
7
+ class DevgineDemoBundle extends Bundle
9
8
{
10
9
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ services :
2
+ Devgine\Demo\Command\HelloCommand :
3
+ tags :
4
+ - { name: 'console.command', command: 'devgine:demo:hello' }
You can’t perform that action at this time.
0 commit comments