oil refineãã¡ããã¨è¦ã
ãããå¦çãåããã¨ãã¯ãoil refineãå©ç¨ãããã ãã
ã¡ããã¨ããã£ãã¨ãããããã®ã§ãã¾ã¨ãã¦ãã
ãããå¦çã¯ãå ¨ã¦ãfuel/app/tasks/ããã®ãã£ã¬ã¯ããª
é ä¸ã«é ä¸ã«ç½®ãããã«ãªã£ã¦ããã
ãããå®è¡ããã«ã¯ãoil refine hoge
runã¡ã½ãããå®è¡ããã
ãããå®è¡ããã«ã¯ãoil refine hoge:sample
runã¡ã½ããã§ã¯ãªãããªãªã¸ãã«ã®ã¡ã½ãããå®è¡ããã
ãããå®è¡ããã«ã¯ãoil refine hoge AAA BBB
ããã§ãrunã¡ã½ããã«å¼æ°ã渡ããã¨ãã§ãã
ãããããããã¿ã¹ã¯ãã¿ã¹ã¯ã確èªãã
Available tasks:
php oil refine install
php oil refine migrate:help
php oil refine session
php oil refine session:create
php oil refine session:remove
php oil refine session:clear
php oil refine session:help
php oil refine fromdb
php oil refine fromdb:help
php oil refine fromdb:scaffold
php oil refine fromdb:model
php oil refine hogeã<------ ãï¼å ¥ã£ã¦ãã
php oil refine hoge:sampleã<------ ãï¼å ¥ã£ã¦ãã
php oil refine robots
php oil refine robots:protect
modelã¨ãããã±ã¼ã¸ããªããå¼ã¹ãªãã£ããã
\ã¢ãã«å
\Email::forge()
ã£ã¦ããã°ã¡ããã¨å¼ã¶ãã¨ãã§ããã
ã¡ãªã¿ã«ãoilã³ãã³ãã§ã¿ã¹ã¯ã®çæãã§ããï¼ããããã«ã oil g help ã«è¼ã£ã¦ãªãæ°ãããï¼
oil g task test
ã£ã¦ãã£ãããtasks/é ä¸ã«test.phpã¨runã¡ã½ããã®ã¹ã±ã«ãã³ãçæããã¦
oil g task test2 subtest
ã£ã¦ãã£ãããtasks/é ä¸ã«test2.phpã¨runã¡ã½ããã¨subtestã®ã¹ã±ã«ãã³ãçæããã
ããã¾ãã
ãããå¦çãåããã¨ãã¯ãoil refineãå©ç¨ãããã ãã
ã¡ããã¨ããã£ãã¨ãããããã®ã§ãã¾ã¨ãã¦ãã
ãããå¦çã¯ãå ¨ã¦ãfuel/app/tasks/ããã®ãã£ã¬ã¯ããª
é ä¸ã«é ä¸ã«ç½®ãããã«ãªã£ã¦ããã
2 namespace Fuel\Tasks;
3 class Hoge
4 {
5 public static function run()
6 {
7 echo "hoge";
8 }
9 }
ãããå®è¡ããã«ã¯ãoil refine hoge
runã¡ã½ãããå®è¡ããã
2 namespace Fuel\Tasks;
3 class Hoge
ã4 {
5 public static function run()
6 {
7 echo "hoge";
8 }
9 public static function sample()
10 {
11 echo "this is sample";
12 }
13 }
ãããå®è¡ããã«ã¯ãoil refine hoge:sample
runã¡ã½ããã§ã¯ãªãããªãªã¸ãã«ã®ã¡ã½ãããå®è¡ããã
2 namespace Fuel\Tasks;
3 class Hoge
4 {
5 public static function run($a,$b)
6 {
7 echo $a;
8 echo $b;
9 echo "hoge";
10 }
11 public static function sample()
12 {
13 echo "this is sample";
14 }
15 }
ãããå®è¡ããã«ã¯ãoil refine hoge AAA BBB
ããã§ãrunã¡ã½ããã«å¼æ°ã渡ããã¨ãã§ãã
ãããããããã¿ã¹ã¯ãã¿ã¹ã¯ã確èªãã
Available tasks:
php oil refine install
php oil refine migrate:help
php oil refine session
php oil refine session:create
php oil refine session:remove
php oil refine session:clear
php oil refine session:help
php oil refine fromdb
php oil refine fromdb:help
php oil refine fromdb:scaffold
php oil refine fromdb:model
php oil refine hogeã<------ ãï¼å ¥ã£ã¦ãã
php oil refine hoge:sampleã<------ ãï¼å ¥ã£ã¦ãã
php oil refine robots
php oil refine robots:protect
modelã¨ãããã±ã¼ã¸ããªããå¼ã¹ãªãã£ããã
\ã¢ãã«å
\Email::forge()
ã£ã¦ããã°ã¡ããã¨å¼ã¶ãã¨ãã§ããã
ã¡ãªã¿ã«ãoilã³ãã³ãã§ã¿ã¹ã¯ã®çæãã§ããï¼ããããã«ã oil g help ã«è¼ã£ã¦ãªãæ°ãããï¼
oil g task test
ã£ã¦ãã£ãããtasks/é ä¸ã«test.phpã¨runã¡ã½ããã®ã¹ã±ã«ãã³ãçæããã¦
oil g task test2 subtest
ã£ã¦ãã£ãããtasks/é ä¸ã«test2.phpã¨runã¡ã½ããã¨subtestã®ã¹ã±ã«ãã³ãçæããã
ããã¾ãã
â»ã³ã¡ã³ãæ稿è ã®ããã°IDã¯ããã°ä½æè ã®ã¿ã«éç¥ããã¾ã