public static function reload(array $definitions = [])
    {
        $properties           = self::getProperties();
        $workerDefinitions    = self::getWorkerDefinition();
        $definitions          = ArrayHelper::merge($workerDefinitions, $definitions);

        self::$container->setProperties($properties);
        self::$container->addDefinitions($definitions);
        self::$container->autoloadWorkerAnnotation();

        $componentDefinitions = self::getComponentDefinitions();
        self::$container->addDefinitions($componentDefinitions);

        /* @var Aop $aop Init reload AOP */
        $aop = App::getBean(Aop::class);
        $aop->init();

        self::$container->initBeans();
    }
public static function reload(array $definitions = [])
    {
        $properties           = self::getProperties();
        $workerDefinitions    = self::getWorkerDefinition();
        $definitions          = ArrayHelper::merge($workerDefinitions, $definitions);

        self::$container->setProperties($properties);
        self::$container->addDefinitions($definitions);
        self::$container->autoloadWorkerAnnotation();

        $componentDefinitions = self::getComponentDefinitions();
        self::$container->addDefinitions($componentDefinitions);

        /* @var Aop $aop Init reload AOP */
        $aop = App::getBean(Aop::class);
        $aop->init();

        self::$container->initBeans();
    }
public static function reload ( array $ definitions = [ ] ) { $ properties = self :: getProperties ( ) ; $ workerDefinitions = self :: getWorkerDefinition ( ) ; $ definitions = ArrayHelper :: merge ( $ workerDefinitions , $ definitions ) ; self :: $ container -> setProperties ( $ properties ) ; self :: $ container -> addDefinitions ( $ definitions ) ; self :: $ container -> autoloadWorkerAnnotation ( ) ; $ componentDefinitions = self :: getComponentDefinitions ( ) ; self :: $ container -> addDefinitions ( $ componentDefinitions ) ; /* @var Aop $aop Init reload AOP */ $ aop = App :: getBean ( Aop :: class ) ; $ aop -> init ( ) ; self :: $ container -> initBeans ( ) ; }
Reload bean definitions

@param array $definitions append definitions to config loader
@throws \ReflectionException
Reload bean definitions