public function testPushOnlyValue() { $container = new Container('\\Illuminate\\Support\\Arr'); $container->push('module/board/skin', 'My\\Class\\Blue'); $container->push('module/board/skin', 'My\\Class\\White'); $repo = $this->getRepoProperty($container); $this->assertEquals(['module/board/skin' => ['My\\Class\\Blue', 'My\\Class\\White']], $repo); return $container; }
/** * 휴지통 등록 * * @param string $className 휴지통 class 이름 * @return void */ public function register($className) { $this->register->push(self::REGISTER_KEY, $className); }
/** * register proxy * * @param ProxyInterface $proxy proxy instance * @return void */ public function register(ProxyInterface $proxy) { $this->container->push(self::REGISTER_KEY, $proxy); }