From 03e70dbb366514b4539277a315c03d372d07e597 Mon Sep 17 00:00:00 2001 From: William Feller Date: Sun, 28 Jul 2019 14:50:29 +0200 Subject: [PATCH] add output message --- src/Commands/DiscoverChildren.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Commands/DiscoverChildren.php b/src/Commands/DiscoverChildren.php index 4d0f307..b2f47ba 100755 --- a/src/Commands/DiscoverChildren.php +++ b/src/Commands/DiscoverChildren.php @@ -5,6 +5,7 @@ use hanneskod\classtools\Iterator\ClassIterator; use Illuminate\Console\Command; use Illuminate\Database\Eloquent\Model; +use Illuminate\Support\Arr; use Illuminate\Support\Str; use Symfony\Component\Finder\Finder; use Tightenco\Parental\HasChildren; @@ -18,11 +19,17 @@ class DiscoverChildren extends Command public function handle() { + $children = $this->findChildren(); + file_put_contents( $this->path(), - 'findChildren(), true).';'.PHP_EOL + 'output->writeln("Parental: Successfully discovered {$count} child classes!"); + return true; }