This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_COOKIE['Token'])){ | |
session_id($_COOKIE['Token']); //sette den token als ID | |
} | |
session_start(); //Lade session | |
$userAcces = $_SESSION['userAccess'];//wenn Token valide ist, stehen in $_SESSION daten drin | |
$responseArray = []; | |
$responseArray = array_merge($responseArray,[$_SERVER['REQUEST_METHOD']]); | |
$responseArray = array_merge($responseArray,$_GET); | |
$responseArray = array_merge($responseArray,$_POST); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors','On'); | |
class MysqlSessionHandler implements SessionHandlerInterface,SessionIdInterface{ | |
private PDO $pdo; | |
private PDOStatement $readStatement; | |
private PDOStatement $writeStatement; | |
public function __construct(PDO $pdo){ | |
$this->pdo = $pdo; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Helper\ProgressBar; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
class RandomCommand extends Command{ | |
protected static $defaultName = 'test:show-random'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.1" | |
volumes: | |
dbdata: | |
services: | |
php-apache: | |
build: docker | |
container_name: php-apache-server | |
working_dir: /src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Person | |
{ | |
/** | |
* Eigenschaften | |
*/ | |
public string $name = ''; | |
public ?string $middleName = null; | |
public int $alter = 0; | |
public DateTime $geburtsdatum; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace BlackScorp\ORM\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Class User | |
* @package BlackScorp\ORM\Entity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use PHPUnit\Framework\TestCase; | |
abstract class AbstractEntityGetterSetterTester extends TestCase | |
{ | |
protected $entity; | |
/** | |
* @dataProvider getData | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
master: | |
image: locustio/locust | |
ports: | |
- "8089:8089" | |
networks: | |
- ddev_default | |
volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Startseite</title> | |
<meta charset="UTF-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body{display:block;margin:0;padding:0;position:absolute;width:100%;height:100%;left:0;top:0} | |
nav{margin:1rem 0} |