Skip to content

Commit

Permalink
Fix issue when installing - the TNT check instantiates the model and …
Browse files Browse the repository at this point in the history
…later scripts can not operate correctly.
  • Loading branch information
Ryan Thompson committed Nov 15, 2016
1 parent bb2151d commit 3c92d14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Search/Command/CheckEntryIndex.php
Expand Up @@ -2,12 +2,12 @@

use Anomaly\Streams\Platform\Application\Application;
use Anomaly\Streams\Platform\Stream\Contract\StreamInterface;
use Illuminate\Contracts\Config\Repository;
use Illuminate\Filesystem\Filesystem;
use Laravel\Scout\EngineManager;

class CheckEntryIndex
{

/**
* The stream instance.
*
Expand All @@ -32,6 +32,10 @@ public function __construct(StreamInterface $stream)
*/
public function handle(Application $application, Filesystem $files)
{
if (!env('INSTALLED')) {
return;
}

if (!class_exists('TeamTNT\TNTSearch\TNTSearch')) {
return;
}
Expand Down

0 comments on commit 3c92d14

Please sign in to comment.