Deprecate templating functionality

Other projects cover this a lot better.
This commit is contained in:
nikic 2014-03-27 12:51:13 +01:00
parent 118f28344d
commit 8429157ab5
4 changed files with 14 additions and 0 deletions

View File

@ -4,8 +4,14 @@ Version 0.9.5-dev
* Add `NodeTraverser::removeVisitor()` method, which removes a visitor from the node traverser. This also modifies the * Add `NodeTraverser::removeVisitor()` method, which removes a visitor from the node traverser. This also modifies the
corresponding `NodeTraverserInterface`. corresponding `NodeTraverserInterface`.
* Deprecated `PHPParser_Template` and `PHPParser_TemplateLoader`. This functionality does not belong in the main project
and - as far as I know - nobody is using it.
* Fix alias resolution in `NameResolver`: Class names are now correctly handled as case-insensitive. * Fix alias resolution in `NameResolver`: Class names are now correctly handled as case-insensitive.
* The undefined variable error, which is used to the lexer to reset the error state, will no longer interfere with
custom error handlers.
Version 0.9.4 (25.08.2013) Version 0.9.4 (25.08.2013)
-------------------------- --------------------------
* [PHP 5.5] Add support for `ClassName::class`. This is parsed as an `Expr_ClassConstFetch` with `'class'` being the * [PHP 5.5] Add support for `ClassName::class`. This is parsed as an `Expr_ClassConstFetch` with `'class'` being the

View File

@ -63,6 +63,8 @@ abstract class SomeClass extends SomeOtherClass implements A\Few, Interfaces
Templates Templates
--------- ---------
> **DEPRECATED**: This feature is deprecated and will be removed in PHP-Parser 1.0.
Additionally it is possible to generate code from reusable templates. Additionally it is possible to generate code from reusable templates.
As an example consider the following template, which defines a general getter/setter skeleton in terms of a property As an example consider the following template, which defines a general getter/setter skeleton in terms of a property

View File

@ -1,5 +1,8 @@
<?php <?php
/**
* @deprecated
*/
class PHPParser_Template class PHPParser_Template
{ {
protected $parser; protected $parser;

View File

@ -1,5 +1,8 @@
<?php <?php
/**
* @deprecated
*/
class PHPParser_TemplateLoader class PHPParser_TemplateLoader
{ {
protected $parser; protected $parser;