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

init:bundle => bundle:init#125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Seldaek wants to merge1 commit intosymfony:masterfromSeldaek:initbundle
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletionsbook/page_creation.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -400,12 +400,12 @@ each of these directories in later chapters.
or ``require`` statements. Instead, Symfony2 uses the namespace of a class
to determine its location and automatically includes the file on your
behalf the instance you need a class::

$loader->registerNamespaces(array(
'Sensio' => __DIR__.'/../src',
// ...
));

With this configuration, Symfony2 will look inside the ``src`` directory
for any class in the ``Sensio`` namespace. For autoloading to work,
the class name and path to the file must follow the same pattern:
Expand DownExpand Up@@ -543,7 +543,7 @@ And while it doesn't do anything yet, ``MyBundle`` is now ready to be used.
And as easy as this is, Symfony also provides a command-line interface for
generating a basic bundle skeleton::

./app/consoleinit:bundle "Sensio\MyBundle" src
./app/console bundle:init "Sensio\MyBundle" src

The bundle skeleton generates with a basic controller, template and routing
resource that can be customized. We'll talk more about Symfony2's command-line
Expand DownExpand Up@@ -716,9 +716,9 @@ call the ``prod`` front controller instead::

If you open the ``web/app.php`` file, you'll that it's configured explicitly
to use the ``prod`` environment::

$kernel = new AppCache(new AppKernel('prod', false));

You can create a new front controller for a new environment by copying
this file and changing ``prod`` to some other value.

Expand Down
4 changes: 2 additions & 2 deletionsbook/security/acl.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,15 +63,15 @@ First, we need to configure the connection the ACL system is supposed to use:
The ACL system requires at least one Doctrine DBAL connection to be
configured. However, that does not mean that you have to use Doctrine for
mapping your domain objects. You can use whatever mapper you like for your
objects, be it Doctrine ORM, Mongo ODM, Propel, or raw SQL, the choice is
objects, be it Doctrine ORM, Mongo ODM, Propel, or raw SQL, the choice is
yours.

After the connection is configured, we have to import the database structure.
Fortunately, we have a task for this. Simply run the following command:

.. code-block:: text

php app/consoleinit:acl
php app/console acl:init

Getting Started
---------------
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp