private function setLoadAfterLegacyModules(): void
    {
        static $legacy = [
            'core',
            'calendar',
            'comments',
            'faq',
            'listing',
            'news',
            'newsletter',
        ];

        $modules = array_merge($legacy, [$this->getName()]);
        sort($modules);
        $modules = array_values($modules);
        array_splice($modules, array_search($this->getName(), $modules, true));

        if (!\in_array('core', $modules, true)) {
            $modules[] = 'core';
        }

        $this->setLoadAfter($modules);
    }
private function setLoadAfterLegacyModules(): void
    {
        static $legacy = [
            'core',
            'calendar',
            'comments',
            'faq',
            'listing',
            'news',
            'newsletter',
        ];

        $modules = array_merge($legacy, [$this->getName()]);
        sort($modules);
        $modules = array_values($modules);
        array_splice($modules, array_search($this->getName(), $modules, true));

        if (!\in_array('core', $modules, true)) {
            $modules[] = 'core';
        }

        $this->setLoadAfter($modules);
    }
private function setLoadAfterLegacyModules ( ) : void { static $ legacy = [ 'core' , 'calendar' , 'comments' , 'faq' , 'listing' , 'news' , 'newsletter' , ] ; $ modules = array_merge ( $ legacy , [ $ this -> getName ( ) ] ) ; sort ( $ modules ) ; $ modules = array_values ( $ modules ) ; array_splice ( $ modules , array_search ( $ this -> getName ( ) , $ modules , true ) ) ; if ( ! \ in_array ( 'core' , $ modules , true ) ) { $ modules [ ] = 'core' ; } $ this -> setLoadAfter ( $ modules ) ; }
Adjusts the configuration so the module is loaded after the legacy modules.
Adjusts the configuration so the module is loaded after the legacy modules .