init
This commit is contained in:
commit
56b42000c0
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace dominion\cron;
|
||||
|
||||
/**
|
||||
* This is just an example.
|
||||
*/
|
||||
class AutoloadExample extends \yii\base\Widget
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
return "Hello!";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
Агент для работы с кроном
|
||||
=========================
|
||||
Функционал для работы с кроном
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
|
||||
|
||||
Either run
|
||||
|
||||
```
|
||||
php composer.phar require --prefer-dist dominion/yii2-cron "*"
|
||||
```
|
||||
|
||||
or add
|
||||
|
||||
```
|
||||
"dominion/yii2-cron": "*"
|
||||
```
|
||||
|
||||
to the require section of your `composer.json` file.
|
||||
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
Once the extension is installed, simply use it in your code by :
|
||||
|
||||
```php
|
||||
<?= \dominion\cron\AutoloadExample::widget(); ?>```
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"name": "dominion/yii2-cron",
|
||||
"description": "Функционал для работы с кроном",
|
||||
"type": "yii2-extension",
|
||||
"keywords": ["yii2","extension"],
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Rybkin Sasha",
|
||||
"email": "ribkin@dominion.ru"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"yiisoft/yii2": "~2.0.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"dominion\\cron\\": ""
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue