Skip to content

Commit 5b2ef9c

Browse files
committed
Make command lazily loaded
1 parent 17e69ae commit 5b2ef9c

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+
- Improve console command registration
99

1010
## 3.5.2 (2020-07-08)
1111
- Use `jean85/pretty-package-versions` `^1.5` to leverage the new `getRootPackageVersion` method (c8799ac)

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)