src/Console/MakeMenu.php 1 location
|
@@ 75-83 (lines=9) @@
|
| 72 |
|
/** |
| 73 |
|
* Execute the console command. |
| 74 |
|
*/ |
| 75 |
|
public function handle() |
| 76 |
|
{ |
| 77 |
|
$this->processInput(); |
| 78 |
|
$tmpfile = $this->createTmpFileWithMenu(); |
| 79 |
|
$path = $this->getPath($tmpfile); |
| 80 |
|
add_file_into_file($this->mountpoint(), $path, $dstFile = $this->destinationFile()); |
| 81 |
|
$this->info('Menu ' . $this->name() . ' added to ' . $dstFile . '.'); |
| 82 |
|
$this->postActions(); |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
/** |
| 86 |
|
* Get mountpoint. |
src/Console/MakeRoute.php 1 location
|
@@ 95-104 (lines=10) @@
|
| 92 |
|
/** |
| 93 |
|
* Execute the console command. |
| 94 |
|
*/ |
| 95 |
|
public function handle() |
| 96 |
|
{ |
| 97 |
|
$this->processInput(); |
| 98 |
|
$this->warnIfRouteAlreadyExists($link = $this->argument('link')); |
| 99 |
|
$tmpfile = $this->createTmpFileWithRoute(); |
| 100 |
|
$path = $this->getPath($tmpfile); |
| 101 |
|
add_file_into_file($this->mountpoint(), $path, $dstFile = $this->destinationFile()); |
| 102 |
|
$this->info('Route ' . $link . ' added to ' . $dstFile . '.'); |
| 103 |
|
$this->postActions(); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
/** |
| 107 |
|
* Get mountpoint. |