Open sergei-sss opened 8 years ago
Try removing this line at line 4 in /var/www/mage203/app/code/Sample/News/Controller/Author/Rss.php:
use Magento\Rss\Controller\Feed\Index;
Then replace the following:
class Rss extends Index
with
class Rss extends \Magento\Rss\Controller\Feed\Index
@sergei-sss This issue should not exist in the new version.
Issue still present in the latest code during compiling with latest Magento 2.1. As far as i came to know, @ryanicle suggestion is right and after that code is successfully complied also.
I wasn't able to reproduce the error. And I don't want to do that fix. I don't want to use fully qualified class names
Could you elaborate why using short class names is better then use fully qualified class names?
As far as i am getting with this, there may be a issue of php version also. Mine PHP 5.6 {Xdebug 2.4 Enabled}
@grasdaggel I don't think it's better to use short class names. But I believe in consistency.
Hi Marius. If I run "bin/magento setup:di:compile", I get error: Fatal error: Cannot use Magento\Rss\Controller\Feed\Index as Index because the name is already in use in /var/www/mage203/app/code/Sample/News/Controller/Author/Rss.php on line 4