Generic.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Block\Widget\Form;
  7. /**
  8. * @api
  9. * @deprecated 100.2.0 in favour of UI component implementation
  10. * @SuppressWarnings(PHPMD.NumberOfChildren)
  11. * @since 100.0.2
  12. */
  13. class Generic extends \Magento\Backend\Block\Widget\Form
  14. {
  15. /**
  16. * @var \Magento\Framework\Data\FormFactory
  17. */
  18. protected $_formFactory;
  19. /**
  20. * Core registry
  21. *
  22. * @var \Magento\Framework\Registry
  23. */
  24. protected $_coreRegistry;
  25. /**
  26. * @param \Magento\Backend\Block\Template\Context $context
  27. * @param \Magento\Framework\Registry $registry
  28. * @param \Magento\Framework\Data\FormFactory $formFactory
  29. * @param array $data
  30. */
  31. public function __construct(
  32. \Magento\Backend\Block\Template\Context $context,
  33. \Magento\Framework\Registry $registry,
  34. \Magento\Framework\Data\FormFactory $formFactory,
  35. array $data = []
  36. ) {
  37. $this->_coreRegistry = $registry;
  38. $this->_formFactory = $formFactory;
  39. parent::__construct($context, $data);
  40. }
  41. }