mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-10 11:10:54 +02:00
Fix scoping / global state problems in tests by using DI in Default Extension. Also removing a bunch of old fashioned phpdoc annotations that are superseded by namespaces.
This commit is contained in:
@@ -63,7 +63,7 @@ to invoke your custom CacheResource implementation.
|
||||
* INDEX(`modified`)
|
||||
* ) ENGINE = InnoDB;</pre>
|
||||
*
|
||||
* @package CacheResource-examples
|
||||
|
||||
* @author Rodney Rehm
|
||||
*/
|
||||
class My_CacheResource_Mysql extends \Smarty\Cacheresource\Custom {
|
||||
@@ -211,7 +211,7 @@ to invoke your custom CacheResource implementation.
|
||||
* Note that memcache has a limitation of 256 characters per cache-key.
|
||||
* To avoid complications all cache-keys are translated to a sha1 hash.
|
||||
*
|
||||
* @package CacheResource-examples
|
||||
|
||||
* @author Rodney Rehm
|
||||
*/
|
||||
class My_CacheResource_Memcache extends \Smarty\Cacheresource\KeyValueStore {
|
||||
|
@@ -48,7 +48,7 @@ example.
|
||||
* Demo data:
|
||||
* <pre>INSERT INTO `templates` (`name`, `modified`, `source`) VALUES ('test.tpl', "2010-12-25 22:00:00", '{$x="hello world"}{$x}');</pre>
|
||||
*
|
||||
* @package Resource-examples
|
||||
|
||||
* @author Rodney Rehm
|
||||
*/
|
||||
class My_Resource_Mysql extends \Smarty\Resource\CustomPlugin {
|
||||
|
@@ -34,7 +34,7 @@ on the functions you are supposed to provide.
|
||||
* Demo data:
|
||||
* <pre>INSERT INTO `templates` (`name`, `modified`, `source`) VALUES ('test.tpl', "2010-12-25 22:00:00", '{$x="hello world"}{$x}');</pre>
|
||||
*
|
||||
* @package Resource-examples
|
||||
|
||||
* @author Rodney Rehm
|
||||
*/
|
||||
class My_Resource_Mysql extends \Smarty\Resource\Custom {
|
||||
|
@@ -44,7 +44,7 @@ on the functions you are supposed to provide.
|
||||
* Demo data:
|
||||
* <pre>INSERT INTO `templates` (`name`, `modified`, `source`) VALUES ('test.tpl', "2010-12-25 22:00:00", '{$x="hello world"}{$x}');</pre>
|
||||
*
|
||||
* @package Resource-examples
|
||||
|
||||
* @author Rodney Rehm
|
||||
*/
|
||||
class My_Resource_Mysql extends \Smarty\Resource\Custom {
|
||||
|
Reference in New Issue
Block a user