Skip to content

Access to Zend Framework classes #736

@tzyganu

Description

@tzyganu

I understood from the Magento 2 presentations I attended so far that between the application and Zend Frameword (ZF) there is another layer, the Magento Framework (MF). This should make it easy to upgrade or change ZF if needed in the future.
This meas that everything found in app/code should not access ZF classes directly. The classes in there should refer only to classes from the MF.
But the method Magento\Cms\Controller\Adminhtml\Page\PostDataProcessor::filter uses an instance of Zend_Filter_Input.

public function filter($data)
{
    $inputFilter = new \Zend_Filter_Input(
        array('custom_theme_from' => $this->dateFilter, 'custom_theme_to' => $this->dateFilter),
        array(),
        $data
    );
    $data = $inputFilter->getUnescaped();
    return $data;
}

In case I understood this wrong and ZF access is allowed directly, please tell me and close this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions