File tree Expand file tree Collapse file tree 2 files changed +27
-46
lines changed
Expand file tree Collapse file tree 2 files changed +27
-46
lines changed Original file line number Diff line number Diff line change 22
33namespace SymfonyRollbarBundle \Tests \Fixtures ;
44
5+ use Symfony \Component \Console \Input \InputInterface ;
6+ use Symfony \Component \Console \Output \OutputInterface ;
57
6- class MyExceptionCommand
8+ class MyExceptionCommand extends \ SymfonyRollbarBundle \ Command \AbstractCommand
79{
10+ protected static $ defaultName = 'rollbar:exception ' ;
811
12+ /**
13+ * @inheritdoc
14+ */
15+ protected function configure ()
16+ {
17+ parent ::configure ();
18+
19+ $ this
20+ ->setName (static ::$ defaultName )
21+ ->setDescription ('Trigger exception. ' );
22+ }
23+
24+ /**
25+ * @param \Symfony\Component\Console\Input\InputInterface $input
26+ * @param \Symfony\Component\Console\Output\OutputInterface $output
27+ *
28+ * @return int|null|void
29+ * @throws \Exception
30+ */
31+ protected function execute (InputInterface $ input , OutputInterface $ output )
32+ {
33+ throw new \Exception ('This is console exception ' );
34+ }
935}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments