<?phpnamespace Kzl\HanabusaBundle;use Symfony\Component\HttpKernel\Bundle\Bundle;class KzlHanabusaBundle extends Bundle{ /** * {@inheritdoc} */ public function boot() { parent::boot(); // 静的クラスにコンテナ(sf1.4のsf_contextのようなもの)を保持しどこからでも参照可能にする。 \Kzl\HanabusaBundle\Common\HanabusaStatic::$container = $this->container; }}