public function postProcess($bean, $beanName) { if ($bean instanceof SampleService) { $bean->setTest($this->dependency); } }