title: extend Block\Catalog\Product\List in magento 2
body: <p>How to give namespace for Block\Catalog\Product\List in magento 2 </p>
  
  <pre><code>namespace Lesson\Chapter\Block\Catalog\Product\List;
  
  class Toolbar extends Mage_Catalog_Block_Product_List_Toolbar 
  {
    protected $tglssearchHelper;
  
    public function __construct(
       \Lesson\Chapter\Helper\Data $tglssearchHelper
     ) {
           $this-&gt;tglssearchHelper = $tglssearchHelper;
       }
   }
  </code></pre>
  
  <p>1) Since List is a keyword in php im unable to create a namespace.</p>
  
  <pre><code>    2) Also how to give the class path of List Toolbar since Magento 2 
         does not have this Block/Product/List/Toolbar class.
  
  
      i get  syntax error, unexpected 'List' (T_LIST), expecting identifier   
   (T_STRING) in \Block\Catalog\Product\List\Toolbar.php on line 2
  </code></pre>