Skip to content

Mage Class used in Magento2 #3940

Closed
Closed
@parekhreena

Description

@parekhreena

I think this line has been missed when converting from magento 1 to Magento2. Mage class has been entirely removed in magento2 but there are still some references of it in the code. It might throw an error as the code is not commented. Or is this for some sort of backward compatibility ? Here is one instance i found:

File: /vendor/magento/magento2-base/lib/internal/Cm/Cache/Backend/File.php

Line 64:

public function __construct(array $options = array())
    {
          //some code here 
            $options['cache_dir'] = Mage::getBaseDir('cache'); 
          //some other code here
}

This is there in Magento 2.0.2 as well as Magento 2.0.3 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions