<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Php%2FSymfony%2FSymfony2%2Fbatch</id>
	<title>Php/Symfony/Symfony2/batch - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Php%2FSymfony%2FSymfony2%2Fbatch"/>
	<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Php/Symfony/Symfony2/batch&amp;action=history"/>
	<updated>2026-04-30T20:53:08Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.nonip.net/index.php?title=Php/Symfony/Symfony2/batch&amp;diff=3855&amp;oldid=prev</id>
		<title>Admin: /* バッチ実行コマンド */</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Php/Symfony/Symfony2/batch&amp;diff=3855&amp;oldid=prev"/>
		<updated>2017-02-10T06:30:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;バッチ実行コマンド&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2017年2月10日 (金) 06:30時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot;&gt;32行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;32行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==バッチ実行コマンド==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==バッチ実行コマンド&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;結果&lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ app/console hello:sample taro&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ app/console hello:sample taro&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; Hello taro&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==参考==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==参考==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;http://docs.symfony.gr.jp/symfony2/cookbook/console.html&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;http://docs.symfony.gr.jp/symfony2/cookbook/console.html&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.nonip.net/index.php?title=Php/Symfony/Symfony2/batch&amp;diff=3854&amp;oldid=prev</id>
		<title>Admin: ページの作成:「vi src/Acme/HelloBundle/Command/SampleCommand.php  namespace Acme\HelloBundle\Command;  use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;  use Symfony\Com...」</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Php/Symfony/Symfony2/batch&amp;diff=3854&amp;oldid=prev"/>
		<updated>2017-02-10T06:30:01Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「vi src/Acme/HelloBundle/Command/SampleCommand.php  namespace Acme\HelloBundle\Command;  use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;  use Symfony\Com...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;vi src/Acme/HelloBundle/Command/SampleCommand.php&lt;br /&gt;
 namespace Acme\HelloBundle\Command;&lt;br /&gt;
 use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;&lt;br /&gt;
 use Symfony\Component\Console\Input\InputArgument;&lt;br /&gt;
 use Symfony\Component\Console\Input\InputInterface;&lt;br /&gt;
 use Symfony\Component\Console\Input\InputOption;&lt;br /&gt;
 use Symfony\Component\Console\Output\OutputInterface;&lt;br /&gt;
 class SampleCommand extends ContainerAwareCommand&lt;br /&gt;
 {&lt;br /&gt;
    protected function configure()&lt;br /&gt;
    {&lt;br /&gt;
        $this&lt;br /&gt;
            -&amp;gt;setName(&amp;#039;hello:sample&amp;#039;)&lt;br /&gt;
            -&amp;gt;setDescription(&amp;#039;Sample someone&amp;#039;)&lt;br /&gt;
            -&amp;gt;addArgument(&amp;#039;name&amp;#039;, InputArgument::OPTIONAL, &amp;#039;sample name?&amp;#039;)&lt;br /&gt;
            -&amp;gt;addOption(&amp;#039;yell&amp;#039;, null, InputOption::VALUE_NONE, &amp;#039;If set, the task will yell in uppercase letters&amp;#039;)&lt;br /&gt;
        ;&lt;br /&gt;
    }&lt;br /&gt;
    protected function execute(InputInterface $input, OutputInterface $output)&lt;br /&gt;
    {&lt;br /&gt;
        $name = $input-&amp;gt;getArgument(&amp;#039;name&amp;#039;);&lt;br /&gt;
        if ($name) {&lt;br /&gt;
            $text = &amp;#039;Hello &amp;#039;.$name;&lt;br /&gt;
        } else {&lt;br /&gt;
            $text = &amp;#039;Hello&amp;#039;;&lt;br /&gt;
        }&lt;br /&gt;
        if ($input-&amp;gt;getOption(&amp;#039;yell&amp;#039;)) {&lt;br /&gt;
            $text = strtoupper($text);&lt;br /&gt;
        }&lt;br /&gt;
        $output-&amp;gt;writeln($text);&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==バッチ実行コマンド==&lt;br /&gt;
 $ app/console hello:sample taro&lt;br /&gt;
&lt;br /&gt;
==参考==&lt;br /&gt;
http://docs.symfony.gr.jp/symfony2/cookbook/console.html&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>