Login working
This commit is contained in:
@@ -14,6 +14,8 @@ class FrameImport extends Command
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'frame:import {frame} {index} {file} '.
|
||||
'{--access=0 : Is frame accessible }'.
|
||||
'{--closed=1 : Is frame limited to CUG }'.
|
||||
'{--cost=0 : Frame Cost }'.
|
||||
'{--mode=1 : Frame Emulation Mode }'.
|
||||
'{--replace : Replace existing frame}'.
|
||||
@@ -43,8 +45,8 @@ class FrameImport extends Command
|
||||
* @return mixed
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
public function handle()
|
||||
{
|
||||
if (! is_numeric($this->argument('frame')))
|
||||
throw new \Exception('Frame is not numeric: '.$this->argument('frame'));
|
||||
|
||||
@@ -75,10 +77,12 @@ class FrameImport extends Command
|
||||
? substr(file_get_contents($this->argument('file')),40)
|
||||
: file_get_contents($this->argument('file'));
|
||||
|
||||
$o->access = $this->option('access');
|
||||
$o->closed = $this->option('closed');
|
||||
$o->cost = $this->option('cost');
|
||||
$o->mode_id = $this->option('mode');
|
||||
$o->type = $this->option('type');
|
||||
|
||||
$o->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user