1<?php 2 3/* 4 * This file is part of the league/commonmark package. 5 * 6 * (c) Colin O'Dell <colinodell@gmail.com> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12namespace League\CommonMark\Extension\TableOfContents; 13 14use League\CommonMark\Block\Element\ListBlock; 15use League\CommonMark\Extension\TableOfContents\Node\TableOfContents as NewTableOfContents; 16 17if (!class_exists(NewTableOfContents::class)) { 18 @trigger_error(sprintf('TableOfContents has moved to a new namespace; use %s instead', NewTableOfContents::class), \E_USER_DEPRECATED); 19} 20 21\class_alias(NewTableOfContents::class, TableOfContents::class); 22 23if (false) { 24 /** 25 * @deprecated This class has moved to the Node sub-namespace; use that instead 26 */ 27 final class TableOfContents extends ListBlock 28 { 29 } 30} 31