Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
errors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Dec 1, 2018
1 parent 413b4bf commit dc3d653
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/Cache/ClearRouteDispatcherData.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Exception\InvalidArgumentException;
use function dirname;

class ClearRouteDispatcherData extends Command
{
Expand All @@ -27,9 +26,8 @@ protected function configure() : void
*/
protected function execute(InputInterface $input, OutputInterface $output) : void
{
$folder = dirname('cache');
$files = glob($folder . '/*fastroute.cache');
$output->writeln('FastRoute cache files under ' . $folder . ' will be deleted.');
$files = glob( './cache/*fastroute.cache');
$output->writeln('FastRoute cache files under ./cache will be deleted.');
foreach ($files as $file) {
$unlinkResult = file_exists($file)
? (unlink($file) === true) ? 'deleted.' : 'could\'t deleted'
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/ClearViewData.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ClearViewData extends Command

public function __construct(array $config, ?string $name = null)
{
$this->config = $config;
$this->config = $config['view'];
parent::__construct($name);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Server/ServerRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Selami\Command\Server;

use Selami\Console\Command as SelamiCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
Expand All @@ -14,7 +14,7 @@
use Symfony\Component\Process\Exception\RuntimeException;
use Symfony\Component\Process\Exception\InvalidArgumentException as ProcessInvalidArgumentException;

class ServerRun extends SelamiCommand
class ServerRun extends Command
{
/**
* @inheritdoc
Expand Down

0 comments on commit dc3d653

Please sign in to comment.