Skip to content

Declare module namespace before template path name #16515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 44 commits into from
Jul 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
7c9a5cb
Update AssignProducts.php
mageprince Jul 3, 2018
c92b57f
Update DefaultCaptcha.php
mageprince Jul 3, 2018
b8751c1
Update Tree.php
mageprince Jul 3, 2018
c1282aa
Update Chooser.php
mageprince Jul 3, 2018
0d99673
Update Edit.php
mageprince Jul 3, 2018
01efc65
Update Main.php
mageprince Jul 3, 2018
c104023
Update Group.php
mageprince Jul 3, 2018
78ef947
Update Add.php
mageprince Jul 3, 2018
0286a12
Update Main.php
mageprince Jul 3, 2018
4310d50
Update Configure.php
mageprince Jul 3, 2018
d27263f
Update Alerts.php
mageprince Jul 3, 2018
f9d5002
Update Inventory.php
mageprince Jul 3, 2018
7fe8314
Update Options.php
mageprince Jul 3, 2018
3cfd5c4
Update Websites.php
mageprince Jul 3, 2018
4f6396a
Update Option.php
mageprince Jul 3, 2018
43ee7dd
Update Date.php
mageprince Jul 3, 2018
4723db4
Update File.php
mageprince Jul 3, 2018
2f14719
Update Select.php
mageprince Jul 3, 2018
5a33ee5
Update Text.php
mageprince Jul 3, 2018
153466e
Update Tier.php
mageprince Jul 3, 2018
2b03b68
Update Content.php
mageprince Jul 3, 2018
69f5949
Update Container.php
mageprince Jul 3, 2018
70f6fe0
Update Link.php
mageprince Jul 3, 2018
c809d9f
Update Toolbar.php
mageprince Jul 3, 2018
e5d8965
Update Additional.php
mageprince Jul 3, 2018
cb94ab3
Update Conditions.php
mageprince Jul 3, 2018
17115ce
Update Conditions.php
mageprince Jul 3, 2018
a924cad
Update Created.php
mageprince Jul 3, 2018
24ec04f
Update Config.php
mageprince Jul 3, 2018
d5dbfb9
Update Currency.php
mageprince Jul 3, 2018
d036eb2
Update Matrix.php
mageprince Jul 3, 2018
3548a08
Update Services.php
mageprince Jul 3, 2018
5a8877f
Update Newsletter.php
mageprince Jul 3, 2018
b83ebb5
Update Newsletter.php
mageprince Jul 3, 2018
bee1aa4
Update Vat.php
mageprince Jul 3, 2018
54e0a3b
Update Downloadable.php
mageprince Jul 3, 2018
6b97b70
Update Links.php
mageprince Jul 3, 2018
8d8791b
Update Samples.php
mageprince Jul 3, 2018
fd4d8f5
Update Js.php
mageprince Jul 3, 2018
a22995f
Update Template.php
mageprince Jul 3, 2018
7b18cef
Update Edit.php
mageprince Jul 3, 2018
87e2f8c
Update Inline.php
mageprince Jul 3, 2018
58e2e4b
Update State.php
mageprince Jul 3, 2018
360b7fd
Merge branch '2.3-develop' into develop
mageprince Jul 3, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/code/Magento/Captcha/Block/Captcha/DefaultCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DefaultCaptcha extends \Magento\Framework\View\Element\Template
/**
* @var string
*/
protected $_template = 'default.phtml';
protected $_template = 'Magento_Captcha::default.phtml';

/**
* @var string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AssignProducts extends \Magento\Backend\Block\Template
*
* @var string
*/
protected $_template = 'catalog/category/edit/assign_products.phtml';
protected $_template = 'Magento_Catalog::catalog/category/edit/assign_products.phtml';

/**
* @var \Magento\Catalog\Block\Adminhtml\Category\Tab\Product
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Adminhtml/Category/Tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Tree extends \Magento\Catalog\Block\Adminhtml\Category\AbstractCategory
/**
* @var string
*/
protected $_template = 'catalog/category/tree.phtml';
protected $_template = 'Magento_Catalog::catalog/category/tree.phtml';

/**
* @var \Magento\Backend\Model\Auth\Session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Chooser extends \Magento\Catalog\Block\Adminhtml\Category\Tree
*
* @var string
*/
protected $_template = 'catalog/category/widget/tree.phtml';
protected $_template = 'Magento_Catalog::catalog/category/widget/tree.phtml';

/**
* @return void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Main extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'catalog/product/attribute/set/main.phtml';
protected $_template = 'Magento_Catalog::catalog/product/attribute/set/main.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ class Group extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'catalog/product/attribute/set/main/tree/group.phtml';
protected $_template = 'Magento_Catalog::catalog/product/attribute/set/main/tree/group.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Add extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'catalog/product/attribute/set/toolbar/add.phtml';
protected $_template = 'Magento_Catalog::catalog/product/attribute/set/toolbar/add.phtml';

/**
* @return AbstractBlock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Main extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'catalog/product/attribute/set/toolbar/main.phtml';
protected $_template = 'Magento_Catalog::catalog/product/attribute/set/toolbar/main.phtml';

/**
* @return $this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Configure extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'catalog/product/composite/configure.phtml';
protected $_template = 'Magento_Catalog::catalog/product/composite/configure.phtml';

/**
* Core registry
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Adminhtml/Product/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Edit extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'catalog/product/edit.phtml';
protected $_template = 'Magento_Catalog::catalog/product/edit.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Alerts extends \Magento\Backend\Block\Widget\Tab
/**
* @var string
*/
protected $_template = 'catalog/product/tab/alert.phtml';
protected $_template = 'Magento_Catalog::catalog/product/tab/alert.phtml';

/**
* @return $this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Inventory extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'catalog/product/tab/inventory.phtml';
protected $_template = 'Magento_Catalog::catalog/product/tab/inventory.phtml';

/**
* @var \Magento\Framework\Module\Manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Options extends Widget
/**
* @var string
*/
protected $_template = 'catalog/product/edit/options.phtml';
protected $_template = 'Magento_Catalog::catalog/product/edit/options.phtml';

/**
* @return Widget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Option extends Widget
/**
* @var string
*/
protected $_template = 'catalog/product/edit/options/option.phtml';
protected $_template = 'Magento_Catalog::catalog/product/edit/options/option.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class Date extends \Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Options\Typ
/**
* @var string
*/
protected $_template = 'catalog/product/edit/options/type/date.phtml';
protected $_template = 'Magento_Catalog::catalog/product/edit/options/type/date.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class File extends \Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Options\Typ
/**
* @var string
*/
protected $_template = 'catalog/product/edit/options/type/file.phtml';
protected $_template = 'Magento_Catalog::catalog/product/edit/options/type/file.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Select extends \Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Options\T
/**
* @var string
*/
protected $_template = 'catalog/product/edit/options/type/select.phtml';
protected $_template = 'Magento_Catalog::catalog/product/edit/options/type/select.phtml';

/**
* Class constructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class Text extends \Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Options\Typ
/**
* @var string
*/
protected $_template = 'catalog/product/edit/options/type/text.phtml';
protected $_template = 'Magento_Catalog::catalog/product/edit/options/type/text.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Tier extends Group\AbstractGroup
/**
* @var string
*/
protected $_template = 'catalog/product/edit/price/tier.phtml';
protected $_template = 'Magento_Catalog::catalog/product/edit/price/tier.phtml';

/**
* Retrieve list of initial customer groups
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Websites extends \Magento\Backend\Block\Store\Switcher
/**
* @var string
*/
protected $_template = 'catalog/product/edit/websites.phtml';
protected $_template = 'Magento_Catalog::catalog/product/edit/websites.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Content extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'catalog/product/helper/gallery.phtml';
protected $_template = 'Magento_Catalog::catalog/product/helper/gallery.phtml';

/**
* @var \Magento\Catalog\Model\Product\Media\Config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ class Container extends Template
/**
* @var string
*/
protected $_template = 'catalog/product/widget/chooser/container.phtml';
protected $_template = 'Magento_Catalog::catalog/product/widget/chooser/container.phtml';
}
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Adminhtml/Rss/Grid/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Link extends \Magento\Framework\View\Element\Template
/**
* @var string
*/
protected $_template = 'rss/grid/link.phtml';
protected $_template = 'Magento_Catalog::rss/grid/link.phtml';

/**
* @var \Magento\Framework\App\Rss\UrlBuilderInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Toolbar extends \Magento\Framework\View\Element\Template
/**
* @var string
*/
protected $_template = 'product/list/toolbar.phtml';
protected $_template = 'Magento_Catalog::product/list/toolbar.phtml';

/**
* Catalog config
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Product/View/Additional.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Additional extends \Magento\Framework\View\Element\Template
/**
* @var string
*/
protected $_template = 'product/view/additional.phtml';
protected $_template = 'Magento_Catalog::product/view/additional.phtml';

/**
* @return array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Conditions extends Template implements RendererInterface
/**
* @var string
*/
protected $_template = 'product/widget/conditions.phtml';
protected $_template = 'Magento_CatalogWidget::product/widget/conditions.phtml';

/**
* @param \Magento\Framework\Data\Form\Element\Factory $elementFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Created extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'catalog/product/attribute/new/created.phtml';
protected $_template = 'Magento_ConfigurableProduct::catalog/product/attribute/new/created.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Config extends Widget implements TabInterface
/**
* @var string
*/
protected $_template = 'catalog/product/edit/super/config.phtml';
protected $_template = 'Magento_ConfigurableProduct::catalog/product/edit/super/config.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Currency extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'system/currency/rates.phtml';
protected $_template = 'Magento_CurrencySymbol::system/currency/rates.phtml';

/**
* Prepare layout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Matrix extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'system/currency/rate/matrix.phtml';
protected $_template = 'Magento_CurrencySymbol::system/currency/rate/matrix.phtml';

/**
* @var \Magento\Directory\Model\CurrencyFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Services extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'system/currency/rate/services.phtml';
protected $_template = 'Magento_CurrencySymbol::system/currency/rate/services.phtml';

/**
* @var \Magento\Directory\Model\Currency\Import\Source\ServiceFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Newsletter extends \Magento\Backend\Block\Widget\Form\Generic implements T
/**
* @var string
*/
protected $_template = 'tab/newsletter.phtml';
protected $_template = 'Magento_Customer::tab/newsletter.phtml';

/**
* @var \Magento\Newsletter\Model\SubscriberFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Vat extends \Magento\Backend\Block\Widget\Form\Renderer\Fieldset\Element
/**
* @var string
*/
protected $_template = 'sales/order/create/address/form/renderer/vat.phtml';
protected $_template = 'Magento_Customer::sales/order/create/address/form/renderer/vat.phtml';

/**
* @var \Magento\Framework\Json\EncoderInterface
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Customer/Block/Newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Newsletter extends \Magento\Customer\Block\Account\Dashboard
/**
* @var string
*/
protected $_template = 'form/newsletter.phtml';
protected $_template = 'Magento_Customer::form/newsletter.phtml';

/**
* @return bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Downloadable extends Widget implements TabInterface
/**
* @var string
*/
protected $_template = 'product/edit/downloadable.phtml';
protected $_template = 'Magento_Downloadable::product/edit/downloadable.phtml';

/**
* Accordion block id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Links extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'product/edit/downloadable/links.phtml';
protected $_template = 'Magento_Downloadable::product/edit/downloadable/links.phtml';

/**
* Downloadable file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Samples extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'product/edit/downloadable/samples.phtml';
protected $_template = 'Magento_Downloadable::product/edit/downloadable/samples.phtml';

/**
* Downloadable file
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Js extends \Magento\Backend\Block\Template
*
* @var string
*/

protected $_template = 'attribute/edit/js.phtml';

/**
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Email/Block/Adminhtml/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Template extends \Magento\Backend\Block\Template implements \Magento\Backe
*
* @var string
*/
protected $_template = 'template/list.phtml';
protected $_template = 'Magento_Email::template/list.phtml';

/**
* @var \Magento\Backend\Block\Widget\Button\ButtonList
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Email/Block/Adminhtml/Template/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Edit extends Widget implements ContainerInterface
*
* @var string
*/
protected $_template = 'template/edit.phtml';
protected $_template = 'Magento_Email::template/edit.phtml';

/**
* @var \Magento\Framework\Json\EncoderInterface
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/GiftMessage/Block/Message/Inline.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Inline extends \Magento\Framework\View\Element\Template
/**
* @var string
*/
protected $_template = 'inline.phtml';
protected $_template = 'Magento_GiftMessage::inline.phtml';

/**
* Gift message message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class State extends \Magento\Framework\View\Element\Template
/**
* @var string
*/
protected $_template = 'layer/state.phtml';
protected $_template = 'Magento_LayeredNavigation::layer/state.phtml';

/**
* Catalog layer
Expand Down