Merged older paper pi with the newer, with some recent updates.
This commit is contained in:
26
app/Http/Controllers/Keyboard.php
Normal file
26
app/Http/Controllers/Keyboard.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Paper\CinemaMultikino;
|
||||
use DiDom\Query;
|
||||
use Illuminate\Http\Request;
|
||||
use DiDom\Document;
|
||||
use App\Paper\Paper;
|
||||
|
||||
class Keyboard extends Controller
|
||||
{
|
||||
|
||||
private $paper;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->paper = new Paper();
|
||||
}
|
||||
|
||||
public function press($key)
|
||||
{
|
||||
$this->paper->sendPrint($key);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user