Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update bake templates to include proper file headers.
  • Loading branch information
markstory committed Mar 18, 2014
1 parent a29aec1 commit 9ffeac1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
17 changes: 16 additions & 1 deletion src/Console/Templates/default/classes/entity.ctp
@@ -1,4 +1,19 @@
<?= "<?php\n"; ?>
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since CakePHP(tm) v 3.0.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
echo "<?php\n";
?>
namespace <?= $namespace ?>\Model\Entity;

use Cake\ORM\Entity;
Expand Down
8 changes: 2 additions & 6 deletions src/Console/Templates/default/classes/table.ctp
@@ -1,9 +1,5 @@
<?php
/**
* Model template file.
*
* Used by bake to create new Model files.
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand All @@ -13,8 +9,8 @@
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @since CakePHP(tm) v 3.0.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
use Cake\Utility\Inflector;

Expand Down

0 comments on commit 9ffeac1

Please sign in to comment.