This file contains 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
server | |
{ | |
#redirect to https: | |
listen *:80; | |
server_name website.local; | |
return 301 https://$host/$1; | |
} | |
server | |
{ |
This file contains 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 | |
doc('Функция генерирующая докблоки и записывающая их в файл (умеет грамотно обновлять файл)'); | |
param('Имя файла, куда нужно сохранять данные','string'); | |
param('Затереть ли файл? default=false','boolean'); | |
def('docBlockGen',function($filename, $overWrite=false) | |
{ | |
//Исходный контент добавляемый в файл при создании. | |
$content = '<?php | |
//Здесь находятся док-блоки для всякого разного - сгенерированные генератором :) |
NewerOlder