Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix typos in 2.0

  • Loading branch information...
commit 0282f705baa3401d865d3fbc2238340cf4c31e9d 1 parent 180bf50
Nikita Konstantinov authored
View
2  book/http_fundamentals.rst
@@ -366,7 +366,7 @@ on that value. This can get ugly quickly::
$request = Request::createFromGlobals();
$path = $request->getPathInfo(); // the URI path being requested
- if (in_array($path, array('', '/')) {
+ if (in_array($path, array('', '/'))) {
$response = new Response('Welcome to the homepage.');
} elseif ($path == '/contact') {
$response = new Response('Contact us');
View
2  book/propel.rst
@@ -263,7 +263,7 @@ If you want to reuse some queries, you can add your own methods to the
public function filterByExpensivePrice()
{
return $this
- ->filterByPrice(array('min' => 1000))
+ ->filterByPrice(array('min' => 1000));
}
}
View
2  book/validation.rst
@@ -825,7 +825,7 @@ it looks like this::
// this IS a valid email address, do something
} else {
// this is *not* a valid email address
- $errorMessage = $errorList[0]->getMessage()
+ $errorMessage = $errorList[0]->getMessage();
// ... do something with the error
}
View
2  components/console/single_command_tool.rst
@@ -37,7 +37,7 @@ it is possible to remove this need by extending the application::
{
// Keep the core default commands to have the HelpCommand
// which is used when using the --help option
- $defaultCommands = parent::getDefaultCommands()
+ $defaultCommands = parent::getDefaultCommands();
$defaultCommands[] = new MyCommand();
View
2  components/dependency_injection/compilation.rst
@@ -213,7 +213,7 @@ benefit of merging multiple files and validation of the configuration::
$processor = new Processor();
$config = $processor->processConfiguration($configuration, $configs);
- $container->setParameter('acme_demo.FOO', $config['foo'])
+ $container->setParameter('acme_demo.FOO', $config['foo']);
// ...
}
View
2  components/event_dispatcher/introduction.rst
@@ -190,7 +190,7 @@ event to determine the exact ``Symfony\Component\EventDispatcher\Event``
instance that's being passed. For example, the ``kernel.event`` event passes an
instance of ``Symfony\Component\HttpKernel\Event\FilterResponseEvent``::
- use Symfony\Component\HttpKernel\Event\FilterResponseEvent
+ use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
public function onKernelResponse(FilterResponseEvent $event)
{
View
6 components/routing/introduction.rst
@@ -33,7 +33,7 @@ your autoloader to load the Routing component::
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Route;
- $route = new Route('/foo', array('controller' => 'MyController'))
+ $route = new Route('/foo', array('controller' => 'MyController'));
$routes = new RouteCollection();
$routes->add('route_name', $route);
@@ -321,9 +321,9 @@ automatically in the background if you want to use it. A basic example of the
$router = new Router(
new YamlFileLoader($locator),
- "routes.yml",
+ 'routes.yml',
array('cache_dir' => __DIR__.'/cache'),
- $requestContext,
+ $requestContext
);
$router->match('/foo/bar');
View
12 components/security/authentication.rst
@@ -130,11 +130,13 @@ password was valid::
use Symfony\Component\Security\Core\Encoder\EncoderFactory;
$userProvider = new InMemoryUserProvider(
- array('admin' => array(
- // password is "foo"
- 'password' => '5FZ2Z8QIkA7UTZ4BYkoC+GsReLf569mSKDsfods6LYQ8t+a8EW9oaircfMpmaLbPBh4FOBiiFyLfuZmTSUwzZg==',
- 'roles' => array('ROLE_ADMIN'),
- ),
+ array(
+ 'admin' => array(
+ // password is "foo"
+ 'password' => '5FZ2Z8QIkA7UTZ4BYkoC+GsReLf569mSKDsfods6LYQ8t+a8EW9oaircfMpmaLbPBh4FOBiiFyLfuZmTSUwzZg==',
+ 'roles' => array('ROLE_ADMIN'),
+ ),
+ )
);
// for some extra checks: is account enabled, locked, expired, etc.?
View
1  cookbook/form/create_form_type_extension.rst
@@ -168,6 +168,7 @@ database)::
return $webPath;
}
+ }
Your form type extension class will need to do two things in order to extend
the ``file`` form type:
View
2  cookbook/security/custom_provider.rst
@@ -134,7 +134,7 @@ Here's an example of how this might look::
// ...
- return new WebserviceUser($username, $password, $salt, $roles)
+ return new WebserviceUser($username, $password, $salt, $roles);
}
throw new UsernameNotFoundException(sprintf('Username "%s" does not exist.', $username));
View
1  reference/constraints/Callback.rst
@@ -88,6 +88,7 @@ those errors should be attributed::
$context->addViolationAtSubPath('firstname', 'This name sounds totally fake!', array(), null);
}
}
+ }
Options
-------
View
2  reference/dic_tags.rst
@@ -619,7 +619,7 @@ other source, first create a class that implements the
// src/Acme/MainBundle/Translation/MyCustomLoader.php
namespace Acme\MainBundle\Translation;
- use Symfony\Component\Translation\Loader\LoaderInterface
+ use Symfony\Component\Translation\Loader\LoaderInterface;
use Symfony\Component\Translation\MessageCatalogue;
class MyCustomLoader implements LoaderInterface
Please sign in to comment.
Something went wrong with that request. Please try again.