ADmad
389072708a
Merge branch '2.0' into 2.1
...
Conflicts:
lib/Cake/Test/Case/Model/ModelReadTest.php
lib/Cake/Utility/Debugger.php
2011-12-22 03:15:04 +05:30
Kyle Robinson Young
51f9837db4
Code standards formatting
2011-12-15 22:52:07 -08:00
mark_story
6d269ce25d
Merge branch '2.0' into 2.1
...
Conflicts:
lib/Cake/Config/config.php
lib/Cake/Console/Command/Task/ModelTask.php
lib/Cake/Console/Command/TestsuiteShell.php
lib/Cake/Model/CakeSchema.php
lib/Cake/Model/Datasource/Database/Sqlite.php
lib/Cake/Test/Case/Model/ModelTestBase.php
lib/Cake/Test/Case/Routing/DispatcherTest.php
lib/Cake/Test/Case/Utility/FileTest.php
lib/Cake/VERSION.txt
2011-12-03 13:45:28 -05:00
ADmad
73674c648c
Moving AppShell inside Console/Command for consistency with file location of other App classes. Also making all core shells and tasks extends AppShell instead of Shell. Closes #2278
2011-11-26 02:48:49 +05:30
mark_story
fb7d931bef
Merge branch '2.0' into 2.1
...
Conflicts:
lib/Cake/Config/config.php
lib/Cake/VERSION.txt
2011-11-15 23:10:34 -05:00
mark_story
ccefe02de9
Fix issue with duplicate class inclusions.
...
When trying to load a class that shared a prefix with an existing
class on case insensitive file systems duplicate class errors could
occur. This would happen primarily with models and missing model classes.
Fixes #2223
2011-11-13 16:15:32 -05:00
Kyle Robinson Young
dba4d21492
Add @link to App docblocks and missing _packageFormat docblock
2011-11-13 10:18:42 -08:00
mark_story
a7fcb0a61c
Fix more strict errors.
2011-11-12 21:42:20 -05:00
mark_story
a2b6f18000
Merge branch '2.0' into 2.1
2011-11-06 11:39:01 -05:00
mark_story
3fa0bdb60f
Revert "Fix missing objects in App::objects()"
...
This change caused non controller objects to show in the
controller list. Reverting until a better implementation
can be done.
This reverts commit ba6f3c17fa
.
2011-11-06 11:24:33 -05:00
ADmad
e1354b2ee6
Merge branch '2.0' into 2.1
2011-11-06 20:39:08 +05:30
mark_story
ba6f3c17fa
Fix missing objects in App::objects()
...
App::objects() should include core objects when asking
for application objects.
2011-11-06 09:42:15 -05:00
Yosuke Basuke Suzuki
f861cc6e09
Proposal. Adding new package using App::build().
...
For instance, adding new 'Service' package to app search paths.
2011-11-03 21:47:28 -04:00
mark_story
205d75587c
Move registration of CakePlugin.
...
Move the uses() call to Cake/bootstrap.php
CakePlugin is used by App, and should be loaded along with
other core classes like Configure and Cache.
Fixes #2147
2011-10-23 13:54:13 -04:00
mark_story
7e89442a13
Make App::_loadVendor() static.
...
Fixes strict warnings.
Fixes #2137
2011-10-21 20:37:24 -04:00
Jose Lorenzo Rodriguez
91d0a081fb
Fixing more links in doc blocks
2011-10-15 11:38:49 -04:30
Yosuke Basuke Suzuki
0b6c93cf82
Refactoring App::build() so it looks more readable
2011-10-14 17:11:45 -04:30
Yosuke Basuke Suzuki
fbf4449b9e
Refactoring: clean up the foreach loop.
...
- cleaner code.
- reduce call of array_values and array_unique.
- clear intent of code.
2011-10-05 15:13:19 +09:00
Yosuke Basuke Suzuki
810e2a4ffe
Bypass unnecessary foreach loop when $paths is empty to improve speed.
2011-10-05 15:08:30 +09:00
Majna
681207e327
Fixed doc block comments.
2011-09-28 22:33:46 +02:00
mark_story
59e306526f
Adding 'vendors' alias to App
...
- Vendor is the new directory name, and a legacy mapping should exist.
This makes App::path() match App::import() and all other packages.
- Add an alias for plugins -> Plugin. It also was missing the alias,
that matches the new style package names.
Fixes #1972
2011-09-12 23:20:29 -04:00
Mark Story mark@mark-story.com
3a8b344208
Fixing issue where CakeTestCase would erase custom bootstrapped paths in tearDown().
...
Adding App::paths() to simplify getting all the paths App knows about.
Fixes #1934
2011-08-29 22:14:18 -04:00
mark_story
9ff922cbc7
App::objects() should skip directories and files starting with
...
`.`. These generally contain version control or OS metadata, and
not code CakePHP can use.
Fixes #1933
2011-08-28 15:36:19 -04:00
Juan Basso
f5a54d00dd
Changed methods and attributes from private to protected.
2011-08-20 00:43:34 -04:00
Juan Basso
895c10af7b
Adjusted some types in @param, @return and @var.
2011-07-31 22:57:17 -04:00
Juan Basso
2a50a1ea99
Included @var in API that was missing.
2011-07-31 17:05:20 -04:00
Juan Basso
9bc3e567c1
Removed the @access and @static.
2011-07-30 20:56:48 -04:00
Juan Basso
db80fe27e1
Changed the visibility to protected.
2011-07-30 20:00:19 -04:00
Juan Basso
e4a1816557
Changed the signature of methods to avoid strict messages.
2011-07-30 19:17:20 -04:00
Juan Basso
a0ee8b49fe
Fixed some API doc in console.
2011-07-28 22:05:29 -04:00
Jose Lorenzo Rodriguez
cfd2d9e00b
Updating all @package annotations in doc blocks
2011-07-26 01:46:14 -04:30
Jose Lorenzo Rodriguez
108505a6a0
Merge branch '2.0-form-helper' into 2.0
2011-07-16 17:32:07 -04:30
Jose Lorenzo Rodriguez
c6c1bf110d
Fixing caching of class loading in App class, this was broken after a recent refactoring
...
Additionally a new property $bootstrapping is added to App, this is set during the bootstrap process to indicate that classes loaded before the caching is initialized should not trigger the cache write routine.
Performance++
2011-07-15 20:44:39 -04:30
Jose Lorenzo Rodriguez
f8ab1d3c73
Adding App::location() method to be able to obtain the defined path for a class
2011-07-12 00:38:50 -04:30
Leonid Mamchenkov
a1f47a803a
Added paths for Controller/Component/Auth (ticket #1757 )
2011-06-22 16:28:39 +03:00
Juan Basso
1c7d54eacc
Updated the paths from comments.
2011-06-19 20:28:40 -04:00
Maggion Emmanuel
21ba5a856f
Fixing documentation
2011-06-05 02:59:54 -07:00
ADmad
6c8b7fd878
Fixing locales lookup folder name. Closes #1744
2011-06-05 02:46:02 +05:30
Juan Basso
192812ee7f
Updating the copyright to 2011.
2011-05-30 22:32:43 -04:00
Ceeram
266058e67a
Moving the sort to also sort plugin objects, sorting in test removed
2011-05-26 19:33:36 +02:00
Ceeram
cea4e4e98e
Sort objects before storing
2011-05-26 19:16:17 +02:00
Ceeram
5f97292648
Change case of Controller::$plugin, fixing missing plugin exceptions, tests updated. Also removing no longer needed camelize() calls
2011-05-26 15:31:40 +02:00
Jose Lorenzo Rodriguez
a05607856a
Merge branch '2.0' of github.com:cakephp/cakephp into 2.0
2011-05-23 11:05:33 -04:30
Jose Lorenzo Rodriguez
1e7bf963c3
Removing unused function App::setObjects()
2011-05-23 11:03:11 -04:30
Ceeram
37fcfb9c86
reset objects when using App::build() with App::RESET
2011-05-23 11:34:13 +02:00
mark_story
68482be3f1
Updating path to match the one found in the repository.
2011-05-22 22:04:08 -04:00
mark_story
85752e21c1
Removing undefined variable use.
...
Making the plugin path match the old plugins directory.
2011-05-22 22:04:08 -04:00
AD7six
8e27cf992f
correct a few missing constant replacements
2011-05-15 18:49:38 +02:00
AD7six
afa8f6b441
remove LIBS constant
...
libs always means the Cake lib - so use the CAKE constant
2011-05-15 18:29:52 +02:00
Jose Lorenzo Rodriguez
6713bb154e
Making themes also CamelCased
2011-05-15 00:09:32 -04:30
Jose Lorenzo Rodriguez
ded3cb4826
Renaming more folders
2011-05-13 02:31:33 -04:30
Jose Lorenzo Rodriguez
54eb934892
Fixing plugin related tests in Core package
2011-05-10 00:46:24 -04:30
Jose Lorenzo Rodriguez
77788a965d
Merge remote-tracking branch 'origin/2.0' into 2.0-plugin-loader
...
Conflicts:
lib/Cake/tests/test_app/plugins/TestPlugin/Model/test_plugin_post.php
lib/Cake/tests/test_app/plugins/test_plugin/Model/TestPluginPost.php
lib/Cake/tests/test_app/plugins/test_plugin/Model/test_plugin_post.php
2011-05-08 22:08:31 -04:30
Jose Lorenzo Rodriguez
0573037f2c
Migrating all View tests to the new plugin loader
2011-05-06 01:07:59 -04:30
Jose Lorenzo Rodriguez
f18b9aae7b
Unloading all plugins with App::build() and $reset parameter is true
2011-05-06 01:05:33 -04:30
ADmad
7fc5e8f810
Fixing typo
2011-05-03 01:01:33 +05:30
ADmad
1cb0e413be
Enhancing App::build() to allow appending paths. Closes #1680
2011-05-01 20:54:52 +05:30
ADmad
75437b45d9
Fixed error where App::import() failed to load new class types added in 2.0. Also fixed couple of test cases.
2011-05-01 03:19:44 +05:30
evilbloodydemon
df57b15f89
Removed undefined variable in App::core, made test pass on Windows.
...
Signed-off-by: mark_story <mark@mark-story.com>
2011-04-26 22:18:51 -04:00
Jose Lorenzo Rodriguez
64db00706e
Merge remote branch 'origin/2.0' into 2.0-plugin-loader
2011-04-23 23:25:31 -04:30
evilbloodydemon
b6c4b8abb5
Unused variables in Core removed
2011-04-23 00:02:05 +04:00
Jose Lorenzo Rodriguez
495611b313
Fixing location of shared plugins folder
2011-04-22 15:14:37 -04:30
Jose Lorenzo Rodriguez
8dc675335a
Small refactoring, and adding some App::uses() to avoid problems
2011-04-21 17:56:03 -04:30
Jose Lorenzo Rodriguez
c504535980
Stating to implement a CakePlugin class to allow the inclusion of bootraping files for plugins
2011-04-17 01:37:31 -04:30
Jose Lorenzo Rodriguez
6737380deb
Partial migration of folders to camelcase in app
2011-03-22 00:46:51 -04:30
AD7six
b90939f659
documentation correction
2011-03-19 17:51:46 +01:00
Jose Lorenzo Rodriguez
3f7928fccc
Changing paths againg form datasources sub packages,
...
Updating database.php.default file
Fixing view generation task
2011-03-16 00:14:37 -04:00
Jose Lorenzo Rodriguez
bd2bd4ba22
Udating skel directory, doc blocs and the location of the Console package
2011-03-15 21:53:42 -04:00
Jose Lorenzo Rodriguez
ecc6a22b3b
Adding tests for loading classes from the libs folder
2011-03-12 01:56:34 -04:30
Jose Lorenzo Rodriguez
fd84b1494d
Documenting remaining methods in App class
2011-03-12 01:15:56 -04:30
Jose Lorenzo Rodriguez
d890896777
Updating Lib package usage in App::load()
2011-03-12 00:40:43 -04:30
Jose Lorenzo Rodriguez
fea2ac23c7
Improving Documentation in App class
2011-03-12 00:09:58 -04:30
Jose Lorenzo Rodriguez
fe52c200e3
Documenting auxiliary functions in App class
2011-03-11 23:30:16 -04:30
Jose Lorenzo Rodriguez
db089ac220
Implementing vendor loading and refactoring code in App::import()
2011-03-11 23:21:34 -04:30
Jose Lorenzo Rodriguez
ebd8d1d0c2
Fixing multiple classes loading in App::import()
2011-03-11 18:59:08 -04:30
Jose Lorenzo Rodriguez
5a57f2c3c3
Re-implmenting file loading in App::import(), search it is not longer recursive... if it ever was
2011-03-11 18:57:11 -04:30
Jose Lorenzo Rodriguez
0bf51d92ca
Improving App::import() to make importing from plugins work again
2011-03-11 01:31:01 -04:30
Jose Lorenzo Rodriguez
3f7a7cc5d1
Removing more un-used code in App class
2011-03-11 01:07:46 -04:30
Jose Lorenzo Rodriguez
02955fb923
Removing unused code in App class, improving backwards compatibility in App::import()
2011-03-11 01:04:41 -04:30
Jose Lorenzo Rodriguez
e6b253ec0f
Starting to write a new App::import() that keeps where possible the backwards compatibility
2011-03-11 00:50:14 -04:30
Jose Lorenzo Rodriguez
472257c347
Removing unused variables and properly testing more methods in App class
2011-03-09 23:33:03 -04:30
Jose Lorenzo Rodriguez
022702506e
Properly testing the App::build() method and bugfixing some issues
2011-03-09 22:11:13 -04:30
Jose Lorenzo Rodriguez
65136e8cb1
Re-adding the support for the topmost plugins folder and homogenizing some constants in shell dispatcher
2011-03-08 15:08:28 -04:30
Jose Lorenzo Rodriguez
48b3593a25
Fixing the CommandList shell, renaming the TestSuiteShell to TestsuiteShell for BC
2011-03-08 14:15:44 -04:30
Jose Lorenzo Rodriguez
2ef02ba29b
Starting to move all console related classes, ViewTask tests passing
2011-03-07 00:45:00 -04:30
Jose Lorenzo Rodriguez
f1e2f5e949
Starting to migrate AuthComponent to the new class loader
2011-03-05 17:40:42 -04:30
José Lorenzo Rodríguez
deae38546b
Fixing App::objects() and App::setObjects() so all dispatcher tests pass
2011-02-22 00:44:33 -04:30
José Lorenzo Rodríguez
6e4f4efb79
Merge remote branch 'origin/2.0' into 2.0-class-loading
...
Conflicts:
cake/bootstrap.php
lib/Cake/Console/Command/TestSuiteShell.php
lib/Cake/Console/TaskCollection.php
lib/Cake/Controller/ComponentCollection.php
lib/Cake/Controller/Controller.php
lib/Cake/Core/App.php
lib/Cake/Model/BehaviorCollection.php
lib/Cake/Network/CakeRequest.php
lib/Cake/TestSuite/CakeTestSuiteDispatcher.php
lib/Cake/TestSuite/CakeWebTestCase.php
lib/Cake/TestSuite/TestManager.php
lib/Cake/TestSuite/TestRunner.php
lib/Cake/View/HelperCollection.php
lib/Cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php
lib/Cake/tests/cases/libs/test_manager.test.php
2011-02-13 23:10:19 -04:30
José Lorenzo Rodríguez
bff6343979
Adding the session datasources apth to App::build(), in the future look into registering only the top level packages
...
Fixing CakeSession tests
2011-01-31 00:02:17 -04:30
José Lorenzo Rodríguez
61e7cafe32
Fixing HelperCollection tests after merging 2.0 branch in
2011-01-28 01:33:08 -04:30
José Lorenzo Rodríguez
ca4ee0c562
Caching plugin objects in App::objects()
2011-01-09 00:01:44 -04:30
José Lorenzo Rodríguez
be83288806
Fixing App::objects() so it will accept again the plugin syntax fro retreiving plugin objects
2011-01-08 23:44:24 -04:30
José Lorenzo Rodríguez
caa29646ce
Fixes for making mpass all ConnectionManager Tests
2011-01-06 00:09:11 -04:30
José Lorenzo Rodríguez
e8a93aef93
Merge remote branch 'origin/2.0' into 2.0-class-loading
...
Temporarly commenting code on App class while the transition is made
Conflicts:
lib/Cake/Core/App.php
2011-01-05 22:21:27 -04:30
José Lorenzo Rodríguez
4c0e06c451
Merge remote branch 'origin/2.0' into 2.0-class-loading
...
Conflicts:
cake/bootstrap.php
cake/libs/view/helpers/js.php
lib/Cake/Model/AclNode.php
lib/Cake/Model/ConnectionManager.php
lib/Cake/bootstrap.php
lib/Cake/tests/cases/libs/controller/controller.test.php
2011-01-02 02:00:03 -04:30
José Lorenzo Rodríguez
f3e2c0835f
First attempt at trying to fix App::objects()
2010-12-21 23:45:22 -04:30
José Lorenzo Rodríguez
5e1b49918b
Fixing App::core('cake')
2010-12-18 22:26:23 -04:30
José Lorenzo Rodríguez
ad78f1dc74
Adding support for plugin classes back,
...
Allowing the user to override core classes in app/libs
Adding some backward compatibility for App::path() and App::build()
2010-12-18 22:07:30 -04:30
José Lorenzo Rodríguez
8e5bd76752
Fixing several errors when running the testsuite
2010-12-11 01:17:55 -04:30
José Lorenzo Rodríguez
4389764050
Fixing core path
2010-12-11 01:13:42 -04:30