Skip to content

Commit e9e5ec1

Browse files
authored
Make command lazily loaded (#373)
1 parent 0cc7739 commit e9e5ec1

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## Unreleased
8-
- ...
8+
- CLI commands registration policy changed to lazy load
99

1010
## 3.5.3 (2020-10-13)
1111
- Refactors and fixes class aliases for more robustness (#315 #359, thanks to @guilliamxavier)

src/Command/SentryTestCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99

1010
class SentryTestCommand extends Command
1111
{
12-
public function __construct()
13-
{
14-
parent::__construct('sentry:test');
15-
}
12+
protected static $defaultName = 'sentry:test';
1613

1714
protected function execute(InputInterface $input, OutputInterface $output): int
1815
{

0 commit comments

Comments
 (0)