Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0036648

Browse files
committed
Merge branch '2.2' into 2.3
2 parents7325ec5 +11ed10e commit0036648

File tree

3 files changed

+2
-56
lines changed

3 files changed

+2
-56
lines changed

‎book/security.rst

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,59 +1543,6 @@ Now, all authentication mechanisms will use the ``chain_provider``, since
15431543
it's the first specified. The ``chain_provider`` will, in turn, try to load
15441544
the user from both the ``in_memory`` and ``user_db`` providers.
15451545

1546-
..tip::
1547-
1548-
If you have no reasons to separate your ``in_memory`` users from your
1549-
``user_db`` users, you can accomplish this even more easily by combining
1550-
the two sources into a single provider:
1551-
1552-
..configuration-block::
1553-
1554-
..code-block::yaml
1555-
1556-
# app/config/security.yml
1557-
security:
1558-
providers:
1559-
main_provider:
1560-
memory:
1561-
users:
1562-
foo:{ password: test }
1563-
entity:
1564-
class:Acme\UserBundle\Entity\User,
1565-
property:username
1566-
1567-
..code-block::xml
1568-
1569-
<!-- app/config/security.xml-->
1570-
<config>
1571-
<providername=="main_provider">
1572-
<memory>
1573-
<username="foo"password="test" />
1574-
</memory>
1575-
1576-
<entityclass="Acme\UserBundle\Entity\User"
1577-
property="username" />
1578-
</provider>
1579-
</config>
1580-
1581-
..code-block::php
1582-
1583-
// app/config/security.php
1584-
$container->loadFromExtension('security', array(
1585-
'providers' => array(
1586-
'main_provider' => array(
1587-
'memory' => array(
1588-
'users' => array(
1589-
'foo' => array('password' => 'test'),
1590-
),
1591-
),
1592-
'entity' => array(
1593-
'class' => 'Acme\UserBundle\Entity\User',
1594-
'property' => 'username'),
1595-
),
1596-
),
1597-
));
1598-
15991546
You can also configure the firewall or individual authentication mechanisms
16001547
to use a specific provider. Again, unless a provider is specified explicitly,
16011548
the first provider is always used:

‎book/testing.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,7 @@ The Crawler can extract information from the nodes::
574574
$info = $crawler->extract(array('_text', 'href'));
575575

576576
// Executes a lambda for each node and return an array of results
577-
$data = $crawler->each(function ($node, $i)
578-
{
577+
$data = $crawler->each(function ($node, $i) {
579578
return $node->attr('href');
580579
});
581580

‎components/class_loader/class_loader.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ is straightforward::
3131
$loader = new ClassLoader();
3232

3333
// to enable searching the include path (eg. for PEAR packages)
34-
$loader->useIncludePath(true);
34+
$loader->setUseIncludePath(true);
3535

3636
// ... register namespaces and prefixes here - see below
3737

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp