<?php namespace ExampleCMS\Action\Cli; class Install implements \ExampleCMS\Contract\Action { public function execute() { $repository = $this->context->getRepository(); $query = $repository->getQuery('CreateTable'); $query->config = $this->config; $query->execute(); die; $this->config->set('base.basePath', readline('Относительный путь до файла index.php:')); $this->config->set('base.db', array( 'type' => 'sqlite', 'path' => 'cache/database.db', )); } }
Подсветку синтаксиса оказывается возможно подключить, подробнее тут http://stackoverflow.com/questions/10335463/how-to-setup-syntax-highlighter-on-blogger
Комментариев нет:
Отправить комментарий