afterInit example

return $this->name;
    }

    /** * Setter method for the collection property. * * @return Enlight_Plugin_Bootstrap */
    public function setCollection(?Enlight_Plugin_PluginCollection $collection = null)
    {
        $this->collection = $collection;
        $this->afterInit();

        return $this;
    }

    /** * Getter method for the collection property. * * @return Enlight_Plugin_PluginCollection|null */
    public function Collection()
    {
        
/** * @return CacheIdCollector */
    public function initCacheIdCollector()
    {
        return new CacheIdCollector();
    }

    public function afterInit()
    {
        $this->get(Enlight_Loader::class)->registerNamespace('ShopwarePlugins\\HttpCache', __DIR__);
        parent::afterInit();
    }

    public function getCapabilities()
    {
        return [
            'install' => false,
            'enable' => false,
            'update' => true,
        ];
    }

    
Home | Imprint | This part of the site doesn't use cookies.