Skip to content
Permalink
Browse files

Start to remove now dead classes.

* Model & ClassRegistry have been replaced by the new ORM.
* Old non-functioning behaviors have been removed. We can forward port
  behaviors as people have time to fix them.
* DbAcl & the AclShell rely on the old Model class - which has been removed.
* Scaffold relies on the old Model and needs to be rethought.
* Parts of bake have been neutered, they relied on Model which is now
  gone.
  • Loading branch information...
markstory committed Dec 16, 2013
1 parent cd6b607 commit db1f1a1461404880ff8722a9f1632636dc3f339b
Showing with 57 additions and 44,626 deletions.
  1. +0 −615 Cake/Console/Command/AclShell.php
  2. +3 −3 Cake/Console/Command/Task/TestTask.php
  3. +0 −164 Cake/Controller/Component/Acl/DbAcl.php
  4. +0 −11 Cake/Controller/Controller.php
  5. +0 −452 Cake/Controller/Scaffold.php
  6. +0 −184 Cake/Model/AclNode.php
  7. +0 −38 Cake/Model/Aco.php
  8. +0 −38 Cake/Model/AcoAction.php
  9. +0 −38 Cake/Model/Aro.php
  10. +0 −144 Cake/Model/Behavior/AclBehavior.php
  11. +0 −699 Cake/Model/Behavior/TranslateBehavior.php
  12. +0 −1,075 Cake/Model/Behavior/TreeBehavior.php
  13. +0 −273 Cake/Model/BehaviorCollection.php
  14. +0 −441 Cake/Model/Datasource/DataSource.php
  15. +0 −44 Cake/Model/I18nModel.php
  16. +0 −3,730 Cake/Model/Model.php
  17. +0 −241 Cake/Model/ModelBehavior.php
  18. +0 −260 Cake/Model/Permission.php
  19. +0 −33 Cake/Test/TestApp/Model/AppModel.php
  20. +0 −85 Cake/Test/TestApp/Model/Article.php
  21. +0 −35 Cake/Test/TestApp/Model/AuthUser.php
  22. +0 −33 Cake/Test/TestApp/Model/Comment.php
  23. +0 −52 Cake/Test/TestApp/Model/ControllerPaginateModel.php
  24. +0 −52 Cake/Test/TestApp/Model/ControllerPaginatorModel.php
  25. +0 −8 Cake/Test/TestApp/Model/Datasource/Database/TestLocalDriver.php
  26. +0 −31 Cake/Test/TestApp/Model/Datasource/Test2OtherSource.php
  27. +0 −31 Cake/Test/TestApp/Model/Datasource/Test2Source.php
  28. +0 −44 Cake/Test/TestApp/Model/PaginatorAuthor.php
  29. +0 −61 Cake/Test/TestApp/Model/PersisterOne.php
  30. +0 −31 Cake/Test/TestApp/Model/PersisterTwo.php
  31. +0 −41 Cake/Test/TestApp/Model/Post.php
  32. +0 −24 Cake/Test/TestApp/Model/RequestActionPost.php
  33. +0 −27 Cake/Test/TestApp/Plugin/TestPlugin/Model/TestPluginAppModel.php
  34. +0 −39 Cake/Test/TestApp/Plugin/TestPlugin/Model/TestPluginAuthUser.php
  35. +0 −40 Cake/Test/TestApp/Plugin/TestPlugin/Model/TestPluginAuthors.php
  36. +0 −31 Cake/Test/TestApp/Plugin/TestPlugin/Model/TestPluginComment.php
  37. +0 −74 Cake/Test/TestApp/Plugin/TestPlugin/Model/TestPluginPost.php
  38. +6 −4 Cake/Test/TestCase/Console/Command/Task/ControllerTaskTest.php
  39. +20 −9 Cake/Test/TestCase/Console/Command/Task/TestTaskTest.php
  40. +8 −8 Cake/Test/TestCase/Console/Command/Task/ViewTaskTest.php
  41. +0 −565 Cake/Test/TestCase/Controller/Component/Acl/DbAclTest.php
  42. +0 −332 Cake/Test/TestCase/Controller/ScaffoldTest.php
  43. +0 −13 Cake/Test/TestCase/Core/ObjectTest.php
  44. +0 −15 Cake/Test/TestCase/Error/ExceptionRendererTest.php
  45. +0 −348 Cake/Test/TestCase/Model/AclNodeTest.php
  46. +0 −479 Cake/Test/TestCase/Model/Behavior/AclBehaviorTest.php
  47. +0 −1,269 Cake/Test/TestCase/Model/Behavior/TranslateBehaviorTest.php
  48. +0 −78 Cake/Test/TestCase/Model/Behavior/TreeBehaviorAfterTest.php
  49. +0 −1,564 Cake/Test/TestCase/Model/Behavior/TreeBehaviorNumberTest.php
  50. +0 −571 Cake/Test/TestCase/Model/Behavior/TreeBehaviorScopedTest.php
  51. +0 −45 Cake/Test/TestCase/Model/Behavior/TreeBehaviorTest.php
  52. +0 −301 Cake/Test/TestCase/Model/Behavior/TreeBehaviorUuidTest.php
  53. +0 −1,260 Cake/Test/TestCase/Model/BehaviorCollectionTest.php
  54. +0 −250 Cake/Test/TestCase/Model/Datasource/DataSourceTest.php
  55. +0 −239 Cake/Test/TestCase/Model/ModelCrossSchemaHabtmTest.php
  56. +0 −952 Cake/Test/TestCase/Model/ModelDeleteTest.php
  57. +0 −2,441 Cake/Test/TestCase/Model/ModelIntegrationTest.php
  58. +0 −8,236 Cake/Test/TestCase/Model/ModelReadTest.php
  59. +0 −44 Cake/Test/TestCase/Model/ModelTest.php
  60. +0 −98 Cake/Test/TestCase/Model/ModelTestBase.php
  61. +0 −2,431 Cake/Test/TestCase/Model/ModelValidationTest.php
  62. +0 −7,200 Cake/Test/TestCase/Model/ModelWriteTest.php
  63. +0 −4,868 Cake/Test/TestCase/Model/models.php
  64. +1 −2 Cake/Test/TestCase/TestSuite/ControllerTestCaseTest.php
  65. +0 −313 Cake/Test/TestCase/Utility/ClassRegistryTest.php
  66. +0 −51 Cake/Test/TestCase/Utility/XmlTest.php
  67. +11 −68 Cake/Test/TestCase/View/Helper/FormHelperTest.php
  68. +5 −39 Cake/Test/TestCase/View/HelperTest.php
  69. +0 −309 Cake/Test/TestCase/View/ScaffoldViewTest.php
  70. +0 −2 Cake/Test/TestCase/View/ViewTest.php
  71. +0 −57 Cake/TestSuite/Fixture/TestModel.php
  72. +0 −359 Cake/Utility/ClassRegistry.php
  73. +0 −6 Cake/View/Helper.php
  74. +3 −19 Cake/View/Helper/FormHelper.php
  75. +0 −58 Cake/View/Scaffold/form.ctp
  76. +0 −106 Cake/View/Scaffold/index.ctp
  77. +0 −199 Cake/View/Scaffold/view.ctp
  78. +0 −93 Cake/View/ScaffoldView.php
  79. +0 −103 lib/Cake/Test/Case/TestSuite/Fixture/CakeFixtureManagerTest.php

This file was deleted.

Oops, something went wrong.
@@ -21,7 +21,7 @@
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Error;
use Cake\Utility\ClassRegistry;
use Cake\ORM\TableRegistry;
use Cake\Utility\Inflector;
/**
@@ -287,10 +287,10 @@ public function isLoadableClass($package, $class) {
* @return object And instance of the class that is going to be tested.
*/
public function buildTestSubject($type, $class) {
ClassRegistry::flush();
TableRegistry::clear();
$class = $this->getRealClassName($type, $class);
if (strtolower($type) === 'model') {
$instance = ClassRegistry::init($class);
$instance = TableRegistry::get($class);
} else {
$instance = new $class();
}

This file was deleted.

Oops, something went wrong.
@@ -27,7 +27,6 @@
use Cake\ORM\TableRegistry;
use Cake\Routing\RequestActionTrait;
use Cake\Routing\Router;
use Cake\Utility\ClassRegistry;
use Cake\Utility\Inflector;
use Cake\Utility\MergeVariablesTrait;
use Cake\Utility\RepositoryAwareTrait;
@@ -657,16 +656,6 @@ public function render($view = null, $layout = null) {
$this->View = $this->_getViewObject();
$models = ClassRegistry::keys();
foreach ($models as $currentModel) {
$currentObject = ClassRegistry::getObject($currentModel);
if ($currentObject instanceof \Cake\Model\Model) {
$className = get_class($currentObject);
$this->request->params['models'][$currentObject->alias] = compact('className');
$this->View->validationErrors[$currentObject->alias] =& $currentObject->validationErrors;
}
}
$this->autoRender = false;
$this->response->body($this->View->render($view, $layout));
return $this->response;
Oops, something went wrong.

0 comments on commit db1f1a1

Please sign in to comment.
You can’t perform that action at this time.