Fabien Potencier
5d6a7d35b0
merged 2.0
2011-12-18 14:48:17 +01:00
Fabien Potencier
4316595dbb
fixed CS
2011-12-18 14:42:59 +01:00
Fabien Potencier
997f354d53
tweaked the README files
2011-12-18 14:22:28 +01:00
Fabien Potencier
0f2caf1106
merged branch lsmith77/component_readmes (PR #2561 )
...
Commits
-------
1e370d7
typo fix
93d8d44
added some more infos about Config
27efd59
added READMEs for the bridges
34fc866
cosmetic tweaks
d6af3f1
fixed README for Console
6a72b8c
added basic README files for all components
Discussion
----------
added basic README files for all components and bridges
heavily based on http://fabien.potencier.org/article/49/what-is-symfony2 and the official Symfony2 documentation
---------------------------------------------------------------------------
by jmikola at 2011/11/03 13:36:07 -0700
Great work. For syntax highlighting on the PHP snippets, you could add "php" after the three backticks.
---------------------------------------------------------------------------
by lsmith77 at 2011/11/03 13:41:29 -0700
done
---------------------------------------------------------------------------
by stealth35 at 2011/11/03 13:49:31 -0700
Nice job, but you also need to add `<?php`
ex :
``` php
<?php
use Symfony\Component\DomCrawler\Crawler;
$crawler = new Crawler();
$crawler->addContent('<html><body><p>Hello World!</p></body></html>');
print $crawler->filter('body > p')->text();
```
---------------------------------------------------------------------------
by lsmith77 at 2011/11/03 13:56:57 -0700
done
---------------------------------------------------------------------------
by ericclemmons at 2011/11/03 19:57:57 -0700
@lsmith77 Well done! This makes consumption of individual components that much easier, *especially* now that `composer.json` files have been added.
---------------------------------------------------------------------------
by lsmith77 at 2011/11/04 01:18:23 -0700
ok .. fixed the issues you mentioned @fabpot
---------------------------------------------------------------------------
by lsmith77 at 2011/11/11 15:00:27 -0800
@fabpot anything else left? seems like an easy merge .. and imho there is considerable benefit for our efforts to spread the word about the components with this PR merged.
---------------------------------------------------------------------------
by drak at 2011/11/11 18:54:13 -0800
You know, it might be a nice idea to put a link to the documentation for each component if there is some at symfony.com
---------------------------------------------------------------------------
by lsmith77 at 2011/11/12 00:59:14 -0800
i did that in some. but i might have missed a few places.
On 12.11.2011, at 03:54, Drak <reply@reply.github.com> wrote:
> You know, it might be a nice idea to put a link to the documentation for each component if there is some at symfony.com
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/symfony/symfony/pull/2561#issuecomment-2715762
---------------------------------------------------------------------------
by breerly at 2011/11/21 10:28:36 -0800
Pretty excited with this.
---------------------------------------------------------------------------
by dbu at 2011/11/24 00:02:50 -0800
is there anything we can help with to make this ready to be merged?
---------------------------------------------------------------------------
by lsmith77 at 2011/12/18 02:39:23 -0800
@fabpot: seriously .. if you are not going to deliver something "better" and don't provide a reason what is wrong with this .. then its beyond frustrating. i obviously do not claim that these README's are perfect (and certainly still no replacement for proper documentation), but I do claim that in their current form they are a radical step forward to potential users of the Symfony2 components.
2011-12-18 12:42:02 +01:00
Joseph Bielawski
ed353da164
[Locale][Stub] Fixed CS
2011-12-15 13:03:21 +01:00
Fabien Potencier
142cef21bb
merged 2.0
2011-12-13 16:12:53 +01:00
Fabien Potencier
e3421a0b1d
[DoctrineBridge] fixed some CS
2011-12-13 10:22:12 +01:00
Fabien Potencier
fd12796673
merged 2.0
2011-12-11 18:50:50 +01:00
stealth35
3759ff0777
[Locale] StubNumberFormatter allow to parse 64bit number in 64bit mode
2011-12-11 17:45:39 +01:00
Fabien Potencier
2b5d4b90d8
merged 2.0
2011-11-24 07:16:52 +01:00
Fabien Potencier
5878490b16
removed unused use statements
2011-11-24 07:16:14 +01:00
Joseph Rouff
c89d45ba2a
Fix cs
2011-11-17 23:14:19 +01:00
Fabien Potencier
d1ae6c7cb6
bumped Symfony version in composer.json files to 2.0.7
2011-11-17 06:58:47 +01:00
Joseph Rouff
fb0379d3b7
Fix some CheckStyle violations on Components.
...
On casts, Control signature etc.
2011-11-11 20:46:32 +01:00
stealth35
796c6b2f8d
[Locale] add getIcuVersion and getIcuDataVersion to Locale
2011-11-09 09:50:22 +01:00
Fabien Potencier
5d91849999
merged 2.0
2011-11-07 20:53:25 +01:00
Lukas Kahwe Smith
6a72b8c6b9
added basic README files for all components
...
heavily inspired by http://fabien.potencier.org/article/49/what-is-symfony2 and the official Symfony2 documentation
2011-11-03 21:11:40 +01:00
Fabien Potencier
165b08986b
merged branch mrtorrent/use_parse_error_code_in_stubnumberformatter (PR #2521 )
...
Commits
-------
89cd64a
Set error code when number cannot be parsed. Fixes #2389
Discussion
----------
Set error code when number cannot be parsed in StubNumberFormatter
The stub implementation of NumberFormatter never sets an error code and instead always returns the "no-error" code. This causes unexpected results when a transformer gives it bad arguments, such as transforming the input value to boolean false and causing exceptions further down the line, as in #2389 .
Instead, it should set an error code when appropriate and return it when requested so that a TransformationFailedException can be raised and the input value left unaltered.
There may be other instances where an error should be set. This covers the common use case of non-numeric input.
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #2389
2011-11-02 14:36:52 +01:00
Fabien Potencier
f8f622b39c
bumped Symfony version to 2.0.6-DEV
2011-11-02 14:18:45 +01:00
Fabien Potencier
7f21a5e979
bumped Symfony version in composer.json files to 2.0.5
2011-11-02 12:42:41 +01:00
Fabien Potencier
8a62e3249f
merged 2.0
2011-11-01 12:32:44 +01:00
Fabien Potencier
d7a5351aaa
updated composer.json files to contain information about autoloading and target dirs
2011-11-01 12:30:24 +01:00
Miquel Rodríguez Telep / Michael Rodríguez-Torrent
89cd64a4a5
Set error code when number cannot be parsed. Fixes #2389
2011-10-30 22:02:16 +00:00
Fabien Potencier
dec43f5539
merged 2.0
2011-10-29 12:01:39 +02:00
Fabien Potencier
851eb73778
removed unused use statements
2011-10-29 11:56:30 +02:00
Fabien Potencier
245ff6d7a8
updated composer.json for 2.1
2011-09-29 17:40:43 +02:00
Igor Wiedler
9c8f100c11
[composer] change ext/intl to the new ext-intl syntax
2011-09-27 12:35:30 +02:00
Igor Wiedler
d535afeb98
[composer] fix monolog-bridge composer.json, add more inter-component deps
2011-09-27 09:33:21 +02:00
Igor Wiedler
9ade639bb4
[composer] add composer.json
2011-09-27 00:55:43 +02:00
stealth35
43b55efd04
[Locale] Fix #2179 StubIntlDateFormatter support yy format
...
Fix #2179 Year limit is 2031 like IntlDateFormatter
2011-09-16 13:12:22 +02:00
Julien Brochet
272e07fb6d
[Locale] fixed CS
2011-06-24 01:49:48 +02:00
Fabien Potencier
f57e1d3e10
fixed CS
2011-06-23 14:07:53 +02:00
Fabien Potencier
a232c148eb
fixed CS
2011-06-14 12:54:32 +02:00
Fabien Potencier
17cd08dc6c
fixed CS
2011-06-08 19:56:59 +02:00
Fabien Potencier
1aabc5da64
fixed CS
2011-06-08 12:16:48 +02:00
Fabien Potencier
62e4342a86
fixed CS
2011-06-08 12:12:55 +02:00
Derek ROTH
9013e3639b
Changed load_resource_bundle() to use ResourceBundle::create() method instead of constructor
2011-06-06 08:45:12 -07:00
Derek ROTH
7837d328bf
A constructor returning null is counter-intuitive. BTW, isn't this a intl bug ?
2011-06-06 03:32:25 -07:00
Pascal Borreli
50d5e3e007
[Various] Fixed typos
2011-05-29 22:24:32 +00:00
Pascal Borreli
46cdf02750
[Various] Fixed typo
2011-05-29 14:19:02 +00:00
Bernhard Schussek
829aa4dc0b
[Locale] Improved error reporting and added stubs for intl_is_failure(), intl_get_error_code() and intl_get_error_message()
2011-05-19 01:15:37 +02:00
Eriksen Costa
12968f144c
[Locale] updated ICU data, changes to note:
...
- The Indian Rupee sign was updated, few fonts supports it: http://en.wikipedia.org/wiki/Indian_rupee_sign
- Updated LocaleTypeTest, zh_Hans_MO was removed from ICU
2011-04-28 11:57:55 -03:00
Eriksen Costa
164ce5210d
capitalized 'boolean'
2011-04-27 02:35:10 -03:00
Eriksen Costa
4db0752894
replaced 'bool' with 'Boolean'
2011-04-27 02:35:03 -03:00
Pascal Borreli
8c0beea677
[Phpdoc] Cleaning/fixing
2011-04-23 15:18:47 +00:00
Pascal Borreli
b5769c52d6
Fixed various typo
2011-04-22 23:12:50 +00:00
Eriksen Costa
9cf7fba913
Merge branch 'master' into fix-stub-locale-method-signature
2011-04-22 00:07:29 -03:00
George Giannoulopoulos
81e1d4f11d
Refactoring, replace is_null() wuth null ===
2011-04-13 13:56:15 +02:00
Eriksen Costa
bc52107d07
[Locale] fixed method signature, removed default value for the $locale arg
2011-04-03 22:57:50 -03:00
stealth35
cee94be277
sanitize die (exit)
2011-03-25 11:26:43 +01:00
Eriksen Costa
9a9a11b8f5
[Locale] fixed some emails
2011-03-13 22:06:29 -03:00
Eriksen Costa
157f001253
Merge remote branch 'bschussek/intl-stub' into intl-stub
2011-03-13 21:50:25 -03:00
Eriksen Costa
8f08bccaae
[Locale] fixed some emails
2011-03-13 21:46:28 -03:00
Eriksen Costa
9c6ccd8290
[Locale] replaced symfony-project.org by symfony.com
2011-03-13 21:22:11 -03:00
Eriksen Costa
50aee60e9b
Merge branch 'master' into intl-stub
2011-03-13 21:20:57 -03:00
Bernhard Schussek
0eb04e487d
Merge remote branch 'Infranology/intl-stub' into intl-stub
2011-03-09 12:04:51 +01:00
Bernhard Schussek
8658287ed6
Merge branch 'master' into intl-stub
2011-03-09 12:02:35 +01:00
Eriksen Costa
0fb9b9a70d
[Locale] changed method name
2011-03-08 16:28:29 -03:00
Eriksen Costa
1da1b80169
[Locale] updated docblocks for StubCollator
2011-03-08 16:06:26 -03:00
Eriksen Costa
310d7eadba
[Locale] updated docblocks
2011-03-08 16:06:10 -03:00
Eriksen Costa
33c37085da
[Locale] moved static constructor
2011-03-07 03:07:19 -03:00
Eriksen Costa
1e2fa773c2
[Locale] renamed method
2011-03-07 03:07:18 -03:00
Eriksen Costa
8825dc8166
[Locale] renamed private method name and variable method with better names
2011-03-07 03:07:18 -03:00
Eriksen Costa
78485356a9
[Locale] code conventions changes (static keyword before visibility keyword)
2011-03-07 03:07:18 -03:00
Eriksen Costa
d8e35a2f5c
[Locale] added tests to document behavior not implemented by StubIntlDateFormatter::parse()
2011-03-07 03:07:18 -03:00
Eriksen Costa
0a577e6fce
[Locale] added more tests to time zone parsing with AM/PM markers
2011-03-07 03:07:17 -03:00
Eriksen Costa
d2df09f744
[Locale] refactored time zone support
2011-03-07 03:07:12 -03:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
Igor Wiedler
2c65c7dab6
[Locale] use the sort flag in StubCollator::asort()
2011-03-02 17:39:30 +01:00
Igor Wiedler
c22a43860b
[Locale] add missing StubCollator methods, with tests
2011-03-02 17:13:24 +01:00
Eriksen Costa
a04099728b
[Locale] removed redundant code
2011-03-01 02:14:08 -03:00
Eriksen Costa
2a06139a97
[Locale] reordered methods to match code conventions
2011-03-01 02:13:55 -03:00
Eriksen Costa
4cc5b6f2d0
[Locale] throw exception if value different than null is provided (behavior not implemented in the stub)
2011-03-01 02:08:13 -03:00
Eriksen Costa
7ba71c0be1
[Locale] added missing docblocks
2011-03-01 01:59:14 -03:00
Igor Wiedler
51e9d8946b
[Locale] match reverseMatchingRegExp against full string value
2011-02-28 18:45:52 +01:00
Igor Wiedler
fd0cc37c71
[Locale] handle escaped (enquoted) strings when parsing
2011-02-28 18:22:22 +01:00
Igor Wiedler
ac8b9be130
[Locale] import FullTransformer via usee statement
2011-02-28 14:29:44 +01:00
Igor Wiedler
a5f8411eff
[Locale] minor cosmetical tweaks to the pre-escaped regExp
2011-02-28 13:54:38 +01:00
Igor Wiedler
20acdac57d
[Locale] remove support for era (BC|AD)
...
parsing it is a pain, nobody uses it, BC only works on 64 bit.
2011-02-28 09:46:30 -03:00
Igor Wiedler
195b2ebdde
[Locale] handle IntlDateFormatter::parse with non-integer timestamp
2011-02-28 09:46:30 -03:00
Eriksen Costa
b7e9b35ca9
[Locale] added parsing of dates with regExp metachars
2011-02-28 09:44:14 -03:00
Eriksen Costa
0449889513
[Locale] added timezone parsing implementation
2011-02-28 01:19:19 -03:00
Eriksen Costa
dadd896915
[Locale] added implementation for minutes and seconds
2011-02-27 18:21:35 -03:00
Eriksen Costa
e78c6c2b1a
[Locale] refactored hour manipulation
2011-02-27 18:14:02 -03:00
Eriksen Costa
348dd7ba24
[Locale] refactoring to separate concerns
2011-02-27 17:03:54 -03:00
Eriksen Costa
4a7c33ce82
[Locale] inject named capture string into Transformer constructor
2011-02-27 16:37:49 -03:00
Eriksen Costa
c1c0c3c42e
[Locale] added parsing for hours (12 and 24 hours)
2011-02-27 15:22:25 -03:00
Eriksen Costa
ed85345312
[Locale] added parsing implementation for year, month and day
2011-02-27 02:22:07 -03:00
Eriksen Costa
f096b7b2bb
[Locale] removed trailing whitespace
2011-02-27 01:04:07 -03:00
Igor Wiedler
0e260c1170
[Locale] refactor date formatting into separate transformer classes, early concepts for date parsing
2011-02-26 19:34:59 +01:00
Igor Wiedler
bcca989c41
[Locale] refactor and simplify some parts of StubIntlDateFormatter
2011-02-23 19:09:48 +01:00
Bernhard Schussek
4af27bd590
[Locale] Added stubs for \Collator and \IntlDateFormatter
2011-02-23 14:46:27 +01:00
Igor Wiedler
ee5bc36c55
[Locale] add docblocks to StubIntlDateFormatter and adjust some things to be more like StubNumberFormatter
2011-02-23 14:20:47 +01:00
Igor Wiedler
7b2b025ebd
[Locale] add @author tag to StubCollator
2011-02-23 14:20:46 +01:00
Igor Wiedler
30ea2bae32
[Locale] add @author tag to StubIntlDateFormatter
2011-02-23 14:20:46 +01:00
Igor Wiedler
96b7c8ff73
[Locale] initial stub of StubCollator with class constants
2011-02-23 14:20:45 +01:00
Igor Wiedler
3cc60f7cb4
[Locale] throw NotImplementedException on unimplemented chars
2011-02-23 14:20:45 +01:00
Igor Wiedler
577dd30927
[Locale] remove setLocale from StubIntlDateFormatter
2011-02-23 14:20:45 +01:00
Igor Wiedler
53839f9235
[Locale] refactor tests, make use of specialized exception
2011-02-23 14:20:45 +01:00
Igor Wiedler
77258223f1
[Locale] re-order StubIntlDateFormatter methods, rename timezoneId to timeZoneId, add setLenient method
2011-02-23 14:20:44 +01:00
Igor Wiedler
1191ab4b56
[Locale] add remaining IntlDateFormatter methods with tests
2011-02-23 14:20:44 +01:00
Igor Wiedler
69b38faff7
[Locale] refactoring and some more tests
2011-02-23 14:20:44 +01:00
Igor Wiedler
1f248652cc
[Locale] minor naming change
2011-02-23 14:20:43 +01:00
Jordi Boggiano
bfbc8f63fa
[Locale] Fixed implementation of quote parsing and replacement
2011-02-23 14:20:43 +01:00
Igor Wiedler
c7380fbb4c
[Locale] support standard date and time types if no format is set, refactoring and more tests
2011-02-23 14:20:42 +01:00
Igor Wiedler
d3a63d35d4
[Locale] slightly adjust regex for matching quotes
2011-02-23 14:20:42 +01:00
Igor Wiedler
632ded5c96
[Locale] use UTC if timezone is unsupported
2011-02-23 14:20:42 +01:00
Igor Wiedler
a883a3f62a
[Locale] adjust to new quoting format, some tests failing
2011-02-23 14:20:42 +01:00
Igor Wiedler
cc6f996334
[Locale] add a list of unimplemented date format keywords
2011-02-23 14:20:41 +01:00
Igor Wiedler
cbfaaef76e
[Locale] support for z (timezone offset from GMT)
2011-02-23 14:20:41 +01:00
Igor Wiedler
d68c5fa7fd
[Locale] refactor to use DateTime and DateTimeZone, adding timezone support
2011-02-23 14:20:41 +01:00
Igor Wiedler
7efe476693
[Locale] support for s (second)
2011-02-23 14:20:41 +01:00
Igor Wiedler
87d3547679
[Locale] support for m (minute of hour)
2011-02-23 14:20:40 +01:00
Igor Wiedler
6b26f8296d
[Locale] support for K (12-hour (0-11))
2011-02-23 14:20:40 +01:00
Igor Wiedler
5a767045b6
[Locale] implement k (24-hour (1-24)
2011-02-23 14:20:40 +01:00
Igor Wiedler
42a652ce3d
[Locale] refactor IntlDateFormatter::format to build regExp dynamically
2011-02-23 14:20:40 +01:00
Igor Wiedler
bfc7e55692
[Locale] support for H (24 hour)
2011-02-23 14:20:39 +01:00
Igor Wiedler
71e3c97358
[Locale] support for a (AM/PM)
2011-02-23 14:20:39 +01:00
Igor Wiedler
49752f104b
[Locale] support for E (day of week)
2011-02-23 14:20:39 +01:00
Igor Wiedler
d4c1357f11
[Locale] support for D (day of year)
2011-02-23 14:20:39 +01:00
Igor Wiedler
5ffce2d6a2
[Locale] add support for h
2011-02-23 14:20:39 +01:00
Igor Wiedler
ae3ee5d896
[Locale] add support for L, which is the same as M
2011-02-23 14:20:38 +01:00
Igor Wiedler
b702ce86b5
[Locale] support for G and Q placeholders in StubIntlDateFormatter::format
2011-02-23 14:20:38 +01:00
Igor Wiedler
8c1146974f
[Locale] add support for escaping, give specifics on implementation used in tests
2011-02-23 14:20:38 +01:00
Igor Wiedler
55ac407458
[Locale] first implementation of StubIntlDateFormatter
2011-02-23 14:20:37 +01:00
Bernhard Schussek
404f83ccc3
[Locale] Added stubs as a replacement for the intl extension
...
You can enable the stubs by including the following code in app/autoload.php:
$loader->registerPrefixFallback(array(
__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs',
));
If the intl extension is not loaded, the stub classes for the "en" locale
will be created automatically.
2011-02-23 13:26:05 +01:00
Eriksen Costa
b649843e00
[Locale] added implementation to StubNumberFormatter::getLocale(), matching StubIntlDateFormatter::getLocale()
2011-02-23 13:26:05 +01:00
Eriksen Costa
b58e25cc83
[Locale] added static constructor
2011-02-23 13:26:05 +01:00
Eriksen Costa
69b0e09d6a
[Locale] added stub implementations of Locale and NumberFormatter classes
...
Updated update-data.php script to extract locales, countries names, languages and currencies
from ICU to be used by the stub implementations
2011-02-23 13:26:05 +01:00
Fabien Potencier
f54cedfe5e
added LICENSE files for the subtree repositories
2011-02-22 18:58:15 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Bernhard Schussek
b9c2e98315
[Form][Locale] Implemented LocaleField and added script for updating ICU data
2011-01-02 10:41:05 +01:00
Jordi Boggiano
094d428e68
CS: Unified strict equality comparisons, put var on the right side
2010-12-21 08:51:21 +01:00
Bernhard Schussek
fdb7f84c7d
[Locale][Form][Validator] Refactored code to new Locale component, implemented Country constraint
2010-12-16 10:18:33 +01:00