Singleton added
This commit is contained in:
42
public/index.php
Normal file
42
public/index.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<!doctype html>
|
||||
<html lang="uk">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Патерни</title>
|
||||
<link rel="stylesheet" href="assets/css/agate.min.css">
|
||||
<script src="assets/js/highlight.min.js"></script>
|
||||
<script src="assets/js/stylus.min.js"></script>
|
||||
<style>
|
||||
pre {
|
||||
font-family: Consolas, monospace;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<?php
|
||||
|
||||
use Pattern\Creational\Singleton;
|
||||
|
||||
require '../vendor/autoload.php';
|
||||
require '../src/helpers.php';
|
||||
|
||||
|
||||
|
||||
// Creational patterns
|
||||
require '../code/singleton.php';
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
</main>
|
||||
<script>hljs.highlightAll();</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user